Add a test for the -suppress-warnings option.
[oota-llvm.git] / test / Linker / alias.ll
1 ; RUN: llvm-link %s %S/Inputs/alias.ll -S -o - | FileCheck %s
2 ; RUN: llvm-link %S/Inputs/alias.ll %s -S -o - | FileCheck %s
3
4 @foo = weak global i32 0
5 ; CHECK-DAG: @foo = alias i32* @zed
6
7 @bar = alias i32* @foo
8 ; CHECK-DAG: @bar = alias i32* @foo
9
10 @foo2 = weak global i32 0
11 ; CHECK-DAG: @foo2 = alias bitcast (i32* @zed to i16*)
12
13 @bar2 = alias i32* @foo2
14 ; CHECK-DAG: @bar2 = alias bitcast (i16* @foo2 to i32*)
15
16 ; CHECK-DAG: @zed = global i32 42