diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-28 20:37:19 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-28 20:37:19 +0100 |
commit | 07c0a816be9c9f3342272623e69ae0d134ebe46a (patch) | |
tree | 736a0c1b9b67be4a47e99e103fa119d45ceba235 /test_deliverable | |
parent | b72ddcdd509e19f95a58a0497344b546a3ad3c50 (diff) | |
download | Compiler-07c0a816be9c9f3342272623e69ae0d134ebe46a.tar.gz Compiler-07c0a816be9c9f3342272623e69ae0d134ebe46a.zip |
Completely done
Diffstat (limited to 'test_deliverable')
-rw-r--r-- | test_deliverable/testcases/test_ASSIGNMULT.c | 14 | ||||
-rw-r--r-- | test_deliverable/testcases/test_ASSIGNMULT_driver.c | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_ASSIGNMULT.c b/test_deliverable/testcases/test_ASSIGNMULT.c new file mode 100644 index 0000000..215b0f8 --- /dev/null +++ b/test_deliverable/testcases/test_ASSIGNMULT.c @@ -0,0 +1,14 @@ +int assignmult() +{ + int x[10][10]; + int j = 0; + int k = 0; + + for(j = 0; j < 10; ++j) + for(k = 0; k < 10; ++k) + { + x[j][k] = j*10+k; + } + + return x[4][2]; +} diff --git a/test_deliverable/testcases/test_ASSIGNMULT_driver.c b/test_deliverable/testcases/test_ASSIGNMULT_driver.c new file mode 100644 index 0000000..857d60f --- /dev/null +++ b/test_deliverable/testcases/test_ASSIGNMULT_driver.c @@ -0,0 +1,6 @@ +int assignmult(); + +int main() +{ + return !(42 == assignmult()); +} |