Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 1 | %myty = type int |
| 2 | %myfn = type float (int,double,uint,short) |
| 3 | type int(%myfn) |
| 4 | type int(int) |
| 5 | type int(int(int)) |
Chris Lattner | 8fba3a0 | 2002-05-02 21:52:35 +0000 | [diff] [blame] | 6 | |
| 7 | %thisfuncty = type int (int) * |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 8 | implementation |
| 9 | |
| 10 | ; This function always returns zero |
| 11 | int "zarro"(int %Func) |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 12 | begin |
| 13 | Startup: |
Chris Lattner | 8fba3a0 | 2002-05-02 21:52:35 +0000 | [diff] [blame] | 14 | add int 0, 10 |
| 15 | ret int 0 |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 16 | end |
| 17 | |
| 18 | int "test"(int) |
Chris Lattner | 0095054 | 2001-06-06 20:29:01 +0000 | [diff] [blame] | 19 | begin |
| 20 | add %thisfuncty %zarro, %test |
| 21 | add %thisfuncty %test, %foozball |
| 22 | ret int 0 |
| 23 | end |
| 24 | |
| 25 | int "foozball"(int) |
| 26 | begin |
| 27 | ret int 0 |
| 28 | end |
| 29 | |