diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-10 22:11:04 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-10 22:11:04 +0000 |
commit | 27134d31ce42631fca12295f4064d55de8dfdee8 (patch) | |
tree | 1610ad24f7f83e85b4349f214b1d754aa1b93ab6 | |
parent | a6addb3eb3b5378dc17d9ea7bf066962517fbfbe (diff) | |
download | Compiler-27134d31ce42631fca12295f4064d55de8dfdee8.tar.gz Compiler-27134d31ce42631fca12295f4064d55de8dfdee8.zip |
moved test cases
-rw-r--r-- | c_compiler/test/in/Add.c | 13 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/ComplexAssignment.c (renamed from c_compiler/test/in/ComplexAssignment.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/ScopeWithAdd.c (renamed from c_compiler/test/in/ScopeWithAdd.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleAdd.c (renamed from c_compiler/test/in/SimpleAdd.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleAdd_2.c (renamed from c_compiler/test/in/SimpleAdd_2.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleAssignment.c (renamed from c_compiler/test/in/SimpleAssignment.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleDeclaration.c (renamed from c_compiler/test/in/SimpleDeclaration.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleReturn.c (renamed from c_compiler/test/in/SimpleReturn.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleScope.c (renamed from c_compiler/test/in/SimpleScope.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleShadowing.c (renamed from c_compiler/test/in/SimpleShadowing.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/SimpleSubtraction.c (renamed from c_compiler/test/in/SimpleSubtraction.c) | 0 | ||||
-rw-r--r-- | c_compiler/test/in/AddSubScope/VariableAdd.c | 11 |
12 files changed, 24 insertions, 0 deletions
diff --git a/c_compiler/test/in/Add.c b/c_compiler/test/in/Add.c new file mode 100644 index 0000000..acdcffc --- /dev/null +++ b/c_compiler/test/in/Add.c @@ -0,0 +1,13 @@ +int main() { + int x = 8; + int y = 29; + int z = 84; + + { + { + z = x + y; + } + } + + return z; +} diff --git a/c_compiler/test/in/ComplexAssignment.c b/c_compiler/test/in/AddSubScope/ComplexAssignment.c index 394cedb..394cedb 100644 --- a/c_compiler/test/in/ComplexAssignment.c +++ b/c_compiler/test/in/AddSubScope/ComplexAssignment.c diff --git a/c_compiler/test/in/ScopeWithAdd.c b/c_compiler/test/in/AddSubScope/ScopeWithAdd.c index 5505cbf..5505cbf 100644 --- a/c_compiler/test/in/ScopeWithAdd.c +++ b/c_compiler/test/in/AddSubScope/ScopeWithAdd.c diff --git a/c_compiler/test/in/SimpleAdd.c b/c_compiler/test/in/AddSubScope/SimpleAdd.c index a04941d..a04941d 100644 --- a/c_compiler/test/in/SimpleAdd.c +++ b/c_compiler/test/in/AddSubScope/SimpleAdd.c diff --git a/c_compiler/test/in/SimpleAdd_2.c b/c_compiler/test/in/AddSubScope/SimpleAdd_2.c index 02b052b..02b052b 100644 --- a/c_compiler/test/in/SimpleAdd_2.c +++ b/c_compiler/test/in/AddSubScope/SimpleAdd_2.c diff --git a/c_compiler/test/in/SimpleAssignment.c b/c_compiler/test/in/AddSubScope/SimpleAssignment.c index 911f7e2..911f7e2 100644 --- a/c_compiler/test/in/SimpleAssignment.c +++ b/c_compiler/test/in/AddSubScope/SimpleAssignment.c diff --git a/c_compiler/test/in/SimpleDeclaration.c b/c_compiler/test/in/AddSubScope/SimpleDeclaration.c index 95c954c..95c954c 100644 --- a/c_compiler/test/in/SimpleDeclaration.c +++ b/c_compiler/test/in/AddSubScope/SimpleDeclaration.c diff --git a/c_compiler/test/in/SimpleReturn.c b/c_compiler/test/in/AddSubScope/SimpleReturn.c index c362948..c362948 100644 --- a/c_compiler/test/in/SimpleReturn.c +++ b/c_compiler/test/in/AddSubScope/SimpleReturn.c diff --git a/c_compiler/test/in/SimpleScope.c b/c_compiler/test/in/AddSubScope/SimpleScope.c index 85294a1..85294a1 100644 --- a/c_compiler/test/in/SimpleScope.c +++ b/c_compiler/test/in/AddSubScope/SimpleScope.c diff --git a/c_compiler/test/in/SimpleShadowing.c b/c_compiler/test/in/AddSubScope/SimpleShadowing.c index 927afce..927afce 100644 --- a/c_compiler/test/in/SimpleShadowing.c +++ b/c_compiler/test/in/AddSubScope/SimpleShadowing.c diff --git a/c_compiler/test/in/SimpleSubtraction.c b/c_compiler/test/in/AddSubScope/SimpleSubtraction.c index 4d88002..4d88002 100644 --- a/c_compiler/test/in/SimpleSubtraction.c +++ b/c_compiler/test/in/AddSubScope/SimpleSubtraction.c diff --git a/c_compiler/test/in/AddSubScope/VariableAdd.c b/c_compiler/test/in/AddSubScope/VariableAdd.c new file mode 100644 index 0000000..e16ed8b --- /dev/null +++ b/c_compiler/test/in/AddSubScope/VariableAdd.c @@ -0,0 +1,11 @@ +int main() { + int x = 23; + int y = 52; + + x = x + y; + x = x + x; + y = x - y; + x = x - y; + + return x; +} |