2008-03-01 08:38:40 +01:00
|
|
|
; RUN: llvm-as < %s | llvm-dis > %t1.ll
|
2004-11-07 07:08:43 +01:00
|
|
|
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
|
|
|
|
; RUN: diff %t1.ll %t2.ll
|
|
|
|
|
2008-03-01 08:38:40 +01:00
|
|
|
%myty = type i32
|
|
|
|
%myfn = type float (i32,double,i32,i16)
|
2011-06-19 02:03:46 +02:00
|
|
|
%0 = type i32(%myfn*)
|
|
|
|
%1 = type i32(i32)
|
|
|
|
%2 = type i32(i32(i32)*)
|
2002-05-02 23:52:35 +02:00
|
|
|
|
2008-03-01 08:38:40 +01:00
|
|
|
%thisfuncty = type i32 (i32) *
|
2001-06-06 22:29:01 +02:00
|
|
|
|
2008-03-01 08:38:40 +01:00
|
|
|
declare void @F(%thisfuncty, %thisfuncty, %thisfuncty)
|
2002-10-07 00:43:49 +02:00
|
|
|
|
2008-03-01 08:38:40 +01:00
|
|
|
define i32 @zarro(i32 %Func) {
|
2001-06-06 22:29:01 +02:00
|
|
|
Startup:
|
2008-03-01 08:38:40 +01:00
|
|
|
add i32 0, 10 ; <i32>:0 [#uses=0]
|
|
|
|
ret i32 0
|
|
|
|
}
|
2001-06-06 22:29:01 +02:00
|
|
|
|
2008-03-01 08:38:40 +01:00
|
|
|
define i32 @test(i32) {
|
|
|
|
call void @F( %thisfuncty @zarro, %thisfuncty @test, %thisfuncty @foozball )
|
|
|
|
ret i32 0
|
|
|
|
}
|
2001-06-06 22:29:01 +02:00
|
|
|
|
2008-03-01 08:38:40 +01:00
|
|
|
define i32 @foozball(i32) {
|
|
|
|
ret i32 0
|
|
|
|
}
|
2001-06-06 22:29:01 +02:00
|
|
|
|