For PR1319: Upgrade to new test harness
[oota-llvm.git] / test / Linker / 2004-05-07-TypeResolution1.ll
1 ; RUN: llvm-upgrade < %s | llvm-as -f -o %t1.bc
2 ; RUN: llvm-upgrade < %p/2004-05-07-TypeResolution2.ll | \
3 ; RUN:    llvm-as -o %t2.bc -f
4 ; RUN: llvm-link -f -o %t3.bc %t1.bc %t2.bc
5
6 target endian = little
7 target pointersize = 32
8
9   %myint = type opaque
10         %struct2 = type { %struct1 }
11
12         %struct1 = type { int, void (%struct2*)*,  %myint *, int (uint *)* }
13
14
15 %driver1 = global %struct1 zeroinitializer              ; <%struct1*> [#uses=1]
16
17 %m1 = external global [1 x sbyte] *     ; <%struct.task_struct**> [#uses=0]
18 ;%m1 = external global uint     ; <%struct.task_struct**> [#uses=0]
19 %str1 = constant [1 x ubyte] zeroinitializer
20 %str2 = constant [2 x ubyte] zeroinitializer
21 %str3 = constant [3 x ubyte] zeroinitializer
22 %str4 = constant [4 x ubyte] zeroinitializer
23 %str5 = constant [5 x ubyte] zeroinitializer
24 %str6 = constant [6 x ubyte] zeroinitializer
25 %str7 = constant [7 x ubyte] zeroinitializer
26 %str8 = constant [8 x ubyte] zeroinitializer
27 %str9 = constant [9 x ubyte] zeroinitializer
28 %stra = constant [10 x ubyte] zeroinitializer
29 %strb = constant [11 x ubyte] zeroinitializer
30 %strc = constant [12 x ubyte] zeroinitializer
31 %strd = constant [13 x ubyte] zeroinitializer
32 %stre = constant [14 x ubyte] zeroinitializer
33 %strf = constant [15 x ubyte] zeroinitializer
34 %strg = constant [16 x ubyte] zeroinitializer
35 %strh = constant [17 x ubyte] zeroinitializer
36
37 implementation   ; Functions:
38
39 declare void %func(%struct2*)
40
41 void %tty_init() {
42 entry:
43         volatile store void (%struct2*)* %func, void (%struct2 *)** getelementptr (%struct1*  %driver1, uint 0, uint 1)
44         ret void
45 }