Debian Codegraph @

terps/tads/tads3/test/data/testaddr1.t

raw
1 /*
2 * Address operator '&' test.
3 *
4 * This test checks what happens when we take the address of an external
5 * symbol which happens to be a function. Prior to 3.1, &x implied that
6 * x was a property name. Starting in 3.1, &x can also be used to obtain
7 * function pointers and built-in function pointers. This file tests
8 * that referring to &f doesn't force f to be a property, so that we can
9 * link to a separate file (testaddr1b.t) where f is defined as a function.
10 */
11
12 #include <tads.h>
13
14 main(args)
15 {
16 local a = &f;
17 "a = &amp;f: dataType(a) = <<dataType(a)>>, a(7) = <<a(7)>>\n";
18 }