terps/tads/tads3/test/data/testaddr2.t
raw| 1 | /* |
| 2 | * Test of the address operator '&'. This function tests what happens if |
| 3 | * we use &f with a symbol 'f' that's never defined. The compiler should |
| 4 | * presume that the symbol is a property value. |
| 5 | */ |
| 6 | |
| 7 | #include <tads.h> |
| 8 | |
| 9 | main(args) |
| 10 | { |
| 11 | local b = 7; b >>>= 1; |
| 12 | local a = &f; |
| 13 | "a = &f: dataType(a) = <<dataType(a)>>, a(7) = <<a(7)>>\n"; |
| 14 | } |