blob: bd6ba086da4125135bf37f0de40b86f9f53f435d [file] [log] [blame]
Chris Lattner00950542001-06-06 20:29:01 +00001 %myty = type int
2 %myfn = type float (int,double,uint,short)
Chris Lattner6c142302004-07-14 23:14:07 +00003 type int(%myfn*)
Chris Lattner00950542001-06-06 20:29:01 +00004 type int(int)
Chris Lattner6c142302004-07-14 23:14:07 +00005 type int(int(int)*)
Chris Lattner8fba3a02002-05-02 21:52:35 +00006
7 %thisfuncty = type int (int) *
Chris Lattner00950542001-06-06 20:29:01 +00008implementation
9
Chris Lattner7209bff2002-10-06 22:43:49 +000010declare void %F(%thisfuncty, %thisfuncty, %thisfuncty)
11
Chris Lattner00950542001-06-06 20:29:01 +000012; This function always returns zero
Chris Lattner7209bff2002-10-06 22:43:49 +000013int %zarro(int %Func)
Chris Lattner00950542001-06-06 20:29:01 +000014begin
15Startup:
Chris Lattner8fba3a02002-05-02 21:52:35 +000016 add int 0, 10
17 ret int 0
Chris Lattner00950542001-06-06 20:29:01 +000018end
19
Chris Lattner7209bff2002-10-06 22:43:49 +000020int %test(int)
Chris Lattner00950542001-06-06 20:29:01 +000021begin
Chris Lattner7209bff2002-10-06 22:43:49 +000022 call void %F(%thisfuncty %zarro, %thisfuncty %test, %thisfuncty %foozball)
Chris Lattner00950542001-06-06 20:29:01 +000023 ret int 0
24end
25
Chris Lattner7209bff2002-10-06 22:43:49 +000026int %foozball(int)
Chris Lattner00950542001-06-06 20:29:01 +000027begin
28 ret int 0
29end
30