summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/test_globals.in13
-rw-r--r--tests/core/test_globals.out1
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/core/test_globals.in b/tests/core/test_globals.in
new file mode 100644
index 00000000..ed5e7891
--- /dev/null
+++ b/tests/core/test_globals.in
@@ -0,0 +1,13 @@
+
+ #include <stdio.h>
+
+ char cache[256], *next = cache;
+
+ int main()
+ {
+ cache[10] = 25;
+ next[20] = 51;
+ printf("*%d,%d*\n", next[10], cache[20]);
+ return 0;
+ }
+ \ No newline at end of file
diff --git a/tests/core/test_globals.out b/tests/core/test_globals.out
new file mode 100644
index 00000000..2cb6768e
--- /dev/null
+++ b/tests/core/test_globals.out
@@ -0,0 +1 @@
+*25,51* \ No newline at end of file