diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-24 22:46:06 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-24 22:46:06 +0000 |
commit | b8738b8d582cba01aa1e944426b0251c9c42ff37 (patch) | |
tree | 7cebba0d549624fe40ca737178231fb52bd980fb /test_deliverable | |
parent | 42156b87d0bc78eb8bac2c0e1cb41f105bbfc32b (diff) | |
download | Compiler-b8738b8d582cba01aa1e944426b0251c9c42ff37.tar.gz Compiler-b8738b8d582cba01aa1e944426b0251c9c42ff37.zip |
Able to store arrays
Diffstat (limited to 'test_deliverable')
-rw-r--r-- | test_deliverable/testcases/test_ARRAY0.c | 5 | ||||
-rw-r--r-- | test_deliverable/testcases/test_ARRAY0_driver.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_ARRAY0.c b/test_deliverable/testcases/test_ARRAY0.c new file mode 100644 index 0000000..fc70359 --- /dev/null +++ b/test_deliverable/testcases/test_ARRAY0.c @@ -0,0 +1,5 @@ +int array0(int a, int b, int c, int d, int e) +{ + int f[5] = { a, b, c, d, e }; + return *f; +} diff --git a/test_deliverable/testcases/test_ARRAY0_driver.c b/test_deliverable/testcases/test_ARRAY0_driver.c new file mode 100644 index 0000000..7d81cae --- /dev/null +++ b/test_deliverable/testcases/test_ARRAY0_driver.c @@ -0,0 +1,6 @@ +int array0(int, int, int, int, int); + +int main() +{ + return !( 38 == array0(38, 93, 29, 37, 23) ); +} |