aboutsummaryrefslogtreecommitdiffstats
path: root/c_compiler/test
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-18 14:34:12 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-18 14:34:12 +0000
commitfac528593e216830c89360f5c6ce64dbe7c5176f (patch)
tree18cbabda0f8bfcec83669de702e1ce3bd2660eda /c_compiler/test
parenteae17d816ea2aa8075d671635c45d3d6b7891e90 (diff)
downloadCompiler-fac528593e216830c89360f5c6ce64dbe7c5176f.tar.gz
Compiler-fac528593e216830c89360f5c6ce64dbe7c5176f.zip
Broke compound statement
Diffstat (limited to 'c_compiler/test')
-rw-r--r--c_compiler/test/in/for.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/c_compiler/test/in/for.c b/c_compiler/test/in/for.c
new file mode 100644
index 0000000..0af6158
--- /dev/null
+++ b/c_compiler/test/in/for.c
@@ -0,0 +1,12 @@
+int main()
+{
+ int x, y, z;
+
+ x = 2 * 3;
+ y = 1 * 3;
+ z = 9;
+
+ y = x + y + z;
+
+ return y;
+}