llvm.org GIT mirror llvm / release_35@215010 test / Linker / alias.ll
release_35@215010

Tree @release_35@215010 (Download .tar.gz)

alias.ll @release_35@215010

27c076a
 
 
 
 
 
 
2d21b25
27c076a
 
2d21b25
27c076a
 
2d21b25
27c076a
 
; RUN: llvm-link %s %S/Inputs/alias.ll -S -o - | FileCheck %s
; RUN: llvm-link %S/Inputs/alias.ll %s -S -o - | FileCheck %s

@foo = weak global i32 0
; CHECK-DAG: @foo = alias i32* @zed

@bar = alias i32* @foo
; CHECK-DAG: @bar = alias i32* @foo

@foo2 = weak global i32 0
; CHECK-DAG: @foo2 = alias bitcast (i32* @zed to i16*)

@bar2 = alias i32* @foo2
; CHECK-DAG: @bar2 = alias bitcast (i16* @foo2 to i32*)

; CHECK-DAG: @zed = global i32 42