Pass the .ll files to llvm-link directly. NFC.
[oota-llvm.git] / test / Linker / Inputs / testlink.ll
1 %intlist = type { %intlist*, i32 }
2
3
4 %Ty1 = type { %Ty2* }
5 %Ty2 = type opaque
6
7 %VecSize = type { <10 x i32> }
8
9 @GVTy1 = global %Ty1* null
10 @GVTy2 = external global %Ty2*
11
12
13 @MyVar = global i32 4
14 @MyIntList = external global %intlist
15 @AConst = constant i32 1234
16
17 ;; Intern in both testlink[12].ll
18 @Intern1 = internal constant i32 52
19
20 ;; Intern in one but not in other
21 @Intern2 = constant i32 12345
22
23 @MyIntListPtr = constant { %intlist* } { %intlist* @MyIntList }
24 @MyVarPtr = linkonce global { i32* } { i32* @MyVar }
25 @0 = constant i32 412
26
27 ; Provides definition of Struct1 and of S1GV.
28 %Struct1 = type { i32 }
29 @S1GV = global %Struct1* null
30
31 define i32 @foo(i32 %blah) {
32   store i32 %blah, i32* @MyVar
33   %idx = getelementptr %intlist* @MyIntList, i64 0, i32 1
34   store i32 12, i32* %idx
35   %ack = load i32* @0
36   %fzo = add i32 %ack, %blah
37   ret i32 %fzo
38 }
39
40 declare void @unimp(float, double)
41
42 define internal void @testintern() {
43   ret void
44 }
45
46 define void @Testintern() {
47   ret void
48 }
49
50 define internal void @testIntern() {
51   ret void
52 }
53
54 declare void @VecSizeCrash1(%VecSize)