59 lines · plain
1%intlist = type { ptr, i32 }2 3 4%Ty1 = type { ptr }5%Ty2 = type opaque6 7%VecSize = type { <10 x i32> }8 9@GVTy1 = global %Ty1 { ptr null }10@GVTy2 = external global %Ty211 12 13@MyVar = global i32 414@MyIntList = external global %intlist15@AConst = constant i32 123416 17;; Intern in both testlink[12].ll18@Intern1 = internal constant i32 5219 20@Use2Intern1 = global ptr @Intern121 22;; Intern in one but not in other23@Intern2 = constant i32 1234524 25@MyIntListPtr = constant { ptr } { ptr @MyIntList }26@MyVarPtr = linkonce global { ptr } { ptr @MyVar }27@0 = constant i32 41228 29; Provides definition of Struct1 and of S1GV.30%Struct1 = type { i32 }31@S1GV = global ptr null32 33define i32 @foo(i32 %blah) {34 store i32 %blah, ptr @MyVar35 %idx = getelementptr %intlist, ptr @MyIntList, i64 0, i32 136 store i32 12, ptr %idx37 %ack = load i32, ptr @038 %fzo = add i32 %ack, %blah39 ret i32 %fzo40}41 42declare void @unimp(float, double)43 44define internal void @testintern() {45 ret void46}47 48define void @Testintern() {49 ret void50}51 52define internal void @testIntern() {53 ret void54}55 56define void @VecSizeCrash1(%VecSize) {57 ret void58}59