summary refs log tree commit diff
path: root/minic/test.minic
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-02 15:34:38 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-02 15:34:38 -0400
commit30eced928c404caae41d62f238270f00bdf7c25b (patch)
tree6f305c2d318e4a9b2dbec9f5a38a704a090c96c1 /minic/test.minic
parentecaad8119f77601fec4cab61c510d697ec5bb939 (diff)
downloadroux-30eced928c404caae41d62f238270f00bdf7c25b.tar.gz
start an example compiler for a subset of C
Diffstat (limited to 'minic/test.minic')
-rw-r--r--minic/test.minic9
1 files changed, 9 insertions, 0 deletions
diff --git a/minic/test.minic b/minic/test.minic
new file mode 100644
index 0000000..8d30eb1
--- /dev/null
+++ b/minic/test.minic
@@ -0,0 +1,9 @@
+{
+	int x;
+	int *p;
+
+	x = 0;
+	p = &x;
+	while (x < 10)
+		*p = x + 1;
+}