summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 10:54:36 +0200
committerVasilis Kalintiris <ehostunreach@gmail.com>2013-12-07 19:35:52 +0200
commite6db99720aded590a5a580096d3a89e8237a9ddc (patch)
tree442113c6a016843aef85e62f513e9d636fd3278c /tests/core
parent3ae52c48122ba894d3b4b2e93be8535b6720cc38 (diff)
Use do_run_from_file() for test_globals
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