• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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(%myfn*)
8%1 = type i32(i32)
9%2 = type i32(i32(i32)*)
10
11  %thisfuncty = type i32 (i32) *
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