diff options
Diffstat (limited to 'c_compiler/test/in')
-rw-r--r-- | c_compiler/test/in/01.c | 3 | ||||
-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 | ||||
-rw-r--r-- | c_compiler/test/in/05.c | 6 |
5 files changed, 27 insertions, 0 deletions
diff --git a/c_compiler/test/in/01.c b/c_compiler/test/in/01.c new file mode 100644 index 0000000..c362948 --- /dev/null +++ b/c_compiler/test/in/01.c @@ -0,0 +1,3 @@ +int main() { + return 13; +} 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; +} diff --git a/c_compiler/test/in/05.c b/c_compiler/test/in/05.c new file mode 100644 index 0000000..546012c --- /dev/null +++ b/c_compiler/test/in/05.c @@ -0,0 +1,6 @@ +char *glob; + +int main() { + glob = "Yann"; + return 0; +} |