diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-07 16:15:51 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-07 16:15:51 +0000 |
commit | fed691abddc2b242a6bcb81d87e18797b95bbe80 (patch) | |
tree | 28cb4c0ea9facfa7cc8642c778708f4e038c2aef /c_compiler/test/in | |
parent | 15789d04e85806745c4c2e1cb3fdc891c34ab21f (diff) | |
download | Compiler-fed691abddc2b242a6bcb81d87e18797b95bbe80.tar.gz Compiler-fed691abddc2b242a6bcb81d87e18797b95bbe80.zip |
Can compile simplest program
Diffstat (limited to 'c_compiler/test/in')
-rw-r--r-- | c_compiler/test/in/02.c | 4 | ||||
-rw-r--r-- | c_compiler/test/in/03.c | 5 | ||||
-rw-r--r-- | c_compiler/test/in/04.c | 9 |
3 files changed, 18 insertions, 0 deletions
diff --git a/c_compiler/test/in/02.c b/c_compiler/test/in/02.c new file mode 100644 index 0000000..95c954c --- /dev/null +++ b/c_compiler/test/in/02.c @@ -0,0 +1,4 @@ +int main() { + int x = 26; + return x; +} diff --git a/c_compiler/test/in/03.c b/c_compiler/test/in/03.c new file mode 100644 index 0000000..911f7e2 --- /dev/null +++ b/c_compiler/test/in/03.c @@ -0,0 +1,5 @@ +int main() { + int x; + x = 15; + return x; +} diff --git a/c_compiler/test/in/04.c b/c_compiler/test/in/04.c new file mode 100644 index 0000000..57cf697 --- /dev/null +++ b/c_compiler/test/in/04.c @@ -0,0 +1,9 @@ +int main() { + int a = 3; + int b = 5; + return a + b; +} + +int f(int a, int v) { + return a + v; +} |