diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-02 15:34:38 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-02 15:34:38 -0400 |
commit | 30eced928c404caae41d62f238270f00bdf7c25b (patch) | |
tree | 6f305c2d318e4a9b2dbec9f5a38a704a090c96c1 /minic/test.minic | |
parent | ecaad8119f77601fec4cab61c510d697ec5bb939 (diff) | |
download | roux-30eced928c404caae41d62f238270f00bdf7c25b.tar.gz |
start an example compiler for a subset of C
Diffstat (limited to 'minic/test.minic')
-rw-r--r-- | minic/test.minic | 9 |
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; +} |