diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-18 13:21:58 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-18 13:21:58 +0000 |
commit | eae17d816ea2aa8075d671635c45d3d6b7891e90 (patch) | |
tree | 9d7c24035bddb199a728b16cb3cf1c301e47ff92 /c_compiler/test | |
parent | f8d984811645f0af6859deff1bf53250317ca542 (diff) | |
download | Compiler-eae17d816ea2aa8075d671635c45d3d6b7891e90.tar.gz Compiler-eae17d816ea2aa8075d671635c45d3d6b7891e90.zip |
Working while loop
Diffstat (limited to 'c_compiler/test')
-rw-r--r-- | c_compiler/test/in/while.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/c_compiler/test/in/while.c b/c_compiler/test/in/while.c new file mode 100644 index 0000000..00ad19d --- /dev/null +++ b/c_compiler/test/in/while.c @@ -0,0 +1,11 @@ +int main() +{ + int x = 0; + + while(x < 10) + { + x = x + 1; + } + + return x; +} |