Regression test for PR#330.
[oota-llvm.git] / test / Linker / 2004-05-07-TypeResolution2.ll
1 ; This file is used by testlink1.ll, so it doesn't actually do anything itself
2 ;
3 ; RUN: echo
4
5 target endian = little
6 target pointersize = 32
7
8   %myint = type ushort
9         %struct2 = type { %struct1 }
10         %struct1 = type { int, void (%struct2*)*, %myint *, int (uint *)* }
11
12 implementation   ; Functions:
13
14 internal void %f1 (%struct1* %tty) {
15 loopentry.preheader:
16
17   ; <void (%struct2*, ubyte)**> [#uses=1]
18   ; <void (%struct2*, ubyte)*> [#uses=0]
19
20         %tmp.2.i.i = getelementptr %struct1* %tty, uint 0, uint 1
21         %tmp.3.i.i = volatile load void (%struct2*)** %tmp.2.i.i
22
23         ret void
24 }
25