aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-20 13:11:19 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-20 13:11:19 +0000
commitaf8b76d0a83813b3cebac7468db4bd64e534c235 (patch)
treee387cec775526f4b0eaea5ab333baf0ae5afdb0b /c_compiler/test
parentb0caad48b1a2c90a03f5d130a50f3fdee1c097a5 (diff)
downloadCompiler-af8b76d0a83813b3cebac7468db4bd64e534c235.tar.gz
Compiler-af8b76d0a83813b3cebac7468db4bd64e534c235.zip
global vars work and changing to printf
Diffstat (limited to 'c_compiler/test')
-rw-r--r--c_compiler/test/in/global.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/c_compiler/test/in/global.c b/c_compiler/test/in/global.c
new file mode 100644
index 0000000..da59c9f
--- /dev/null
+++ b/c_compiler/test/in/global.c
@@ -0,0 +1,6 @@
+int x = 3 + 4;
+
+int main()
+{
+ return x;
+}