1 ; RUN: llvm-as < %s > %t.bc
2 ; RUN: llvm-as < %p/testlink2.ll > %t2.bc
3 ; RUN: llvm-link %t.bc %t2.bc
5 @MyVar = external global i32 ; <i32*> [#uses=3]
6 @MyIntList = global { \2*, i32 } { { \2*, i32 }* null, i32 17 } ; <{ \2*, i32 }*> [#uses=1]
7 external global i32 ; <i32*>:0 [#uses=0]
8 @Inte = global i32 1 ; <i32*> [#uses=0]
9 @AConst = linkonce constant i32 123 ; <i32*> [#uses=0]
10 @Intern1 = internal constant i32 42 ; <i32*> [#uses=0]
11 @Intern2 = internal constant i32 792 ; <i32*> [#uses=0]
12 @MyVarPtr = linkonce global { i32* } { i32* @MyVar } ; <{ i32* }*> [#uses=0]
16 declare void @print(i32)
19 %v1 = load i32* @MyVar ; <i32> [#uses=1]
20 call void @print( i32 %v1 )
21 %idx = getelementptr { \2*, i32 }* @MyIntList, i64 0, i32 1 ; <i32*> [#uses=2]
22 %v2 = load i32* %idx ; <i32> [#uses=1]
23 call void @print( i32 %v2 )
24 call i32 @foo( i32 5 ) ; <i32>:1 [#uses=0]
25 %v3 = load i32* @MyVar ; <i32> [#uses=1]
26 call void @print( i32 %v3 )
27 %v4 = load i32* %idx ; <i32> [#uses=1]
28 call void @print( i32 %v4 )
32 define internal void @testintern() {
36 define internal void @Testintern() {
40 define void @testIntern() {