summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/demo.at2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/demo.at b/tests/demo.at
index c86e1e91..eb8a97fd 100644
--- a/tests/demo.at
+++ b/tests/demo.at
@@ -295,6 +295,8 @@ int main ()
if (s->address) {
const char *name = s->name;
printf ("found symbol: %s\n", name);
+ if (STREQ ("@INIT@", name))
+ ((void(*)())s->address)();
if (STREQ ("hello", name))
phello = (int(*)())s->address;
else if (STREQ ("foo", name))