xref: /llvm-project/llvm/test/Feature/forwardreftest.ll (revision 1842a2909e80da9432c5d79a95ec2c331bd99744)
1; RUN: llvm-as < %s | llvm-dis > %t1.ll
2; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
3; RUN: diff %t1.ll %t2.ll
4
5%myty = type i32
6%myfn = type float (i32,double,i32,i16)
7%0 = type i32(ptr)
8%1 = type i32(i32)
9%2 = type i32(ptr)
10
11  %thisfuncty = type ptr
12
13declare void @F(%thisfuncty, %thisfuncty, %thisfuncty)
14
15define i32 @zarro(i32 %Func) {
16Startup:
17        add i32 0, 10           ; <i32>:0 [#uses=0]
18        ret i32 0
19}
20
21define i32 @test(i32) {
22        call void @F( %thisfuncty @zarro, %thisfuncty @test, %thisfuncty @foozball )
23        ret i32 0
24}
25
26define i32 @foozball(i32) {
27        ret i32 0
28}
29
30