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)) |
| 6 | implementation |
| 7 | |
| 8 | ; This function always returns zero |
| 9 | int "zarro"(int %Func) |
| 10 | %q = uint 4000000000 |
| 11 | %p = int 0 |
| 12 | begin |
| 13 | Startup: |
| 14 | add int %p, 10 |
| 15 | ret int %p |
| 16 | end |
| 17 | |
| 18 | int "test"(int) |
| 19 | %thisfuncty = type int (int) |
| 20 | begin |
| 21 | add %thisfuncty %zarro, %test |
| 22 | add %thisfuncty %test, %foozball |
| 23 | ret int 0 |
| 24 | end |
| 25 | |
| 26 | int "foozball"(int) |
| 27 | begin |
| 28 | ret int 0 |
| 29 | end |
| 30 | |