2014-05-17 03:35:39 +08:00
|
|
|
; 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
|
2015-09-11 11:22:04 +08:00
|
|
|
; CHECK-DAG: @foo = alias i32, i32* @zed
|
2014-05-17 03:35:39 +08:00
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@bar = alias i32, i32* @foo
|
|
|
|
; CHECK-DAG: @bar = alias i32, i32* @foo
|
2014-05-17 03:35:39 +08:00
|
|
|
|
|
|
|
@foo2 = weak global i32 0
|
2015-09-11 11:22:04 +08:00
|
|
|
; CHECK-DAG: @foo2 = alias i16, bitcast (i32* @zed to i16*)
|
2014-05-17 03:35:39 +08:00
|
|
|
|
2015-09-11 11:22:04 +08:00
|
|
|
@bar2 = alias i32, i32* @foo2
|
|
|
|
; CHECK-DAG: @bar2 = alias i32, bitcast (i16* @foo2 to i32*)
|
2014-05-17 03:35:39 +08:00
|
|
|
|
|
|
|
; CHECK-DAG: @zed = global i32 42
|