terps/tads/tads3/test/data/testaddr4.t
raw| 1 | /* |
| 2 | * Another address operator test. This tests what happens if we use "&f" |
| 3 | * and then define "f" as a function later in the same file. |
| 4 | */ |
| 5 | |
| 6 | #include <tads.h> |
| 7 | |
| 8 | main(args) |
| 9 | { |
| 10 | local a = &f; |
| 11 | "a=&f: dataType(a)=<<dataType(a)>>, a(17)=<<a(17)>>\n"; |
| 12 | } |
| 13 | |
| 14 | f(x) |
| 15 | { |
| 16 | return x*2; |
| 17 | } |
| 18 |