aboutsummaryrefslogtreecommitdiff
path: root/tests/tcctest.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcctest.c')
-rw-r--r--tests/tcctest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index 22d9e88..5190523 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -946,6 +946,12 @@ void expr_ptr_test()
j = -1;
printf("%d\n", sp[j].i);
}
+#ifdef __LP64__
+ i = 1;
+ p = (int*)0x100000000UL + i;
+ i = ((long)p) >> 32;
+ printf("largeptr: %p %d\n", p, i);
+#endif
}
void expr_cmp_test()