aboutsummaryrefslogtreecommitdiffstats
path: root/test_deliverable/testcases/test_CHARARRAY0_driver.c
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-25 16:13:33 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-25 16:13:33 +0000
commitd08786b22e454e177e0642b5f9e4b19a12a891b1 (patch)
treed30bd28fc88deef201e76ac02619e0636b0abff6 /test_deliverable/testcases/test_CHARARRAY0_driver.c
parent42342b2a58c2a9189ac0ef657c766c8632782bc7 (diff)
downloadCompiler-d08786b22e454e177e0642b5f9e4b19a12a891b1.tar.gz
Compiler-d08786b22e454e177e0642b5f9e4b19a12a891b1.zip
Adding proper support for types
Diffstat (limited to 'test_deliverable/testcases/test_CHARARRAY0_driver.c')
-rw-r--r--test_deliverable/testcases/test_CHARARRAY0_driver.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_CHARARRAY0_driver.c b/test_deliverable/testcases/test_CHARARRAY0_driver.c
new file mode 100644
index 0000000..0b68aae
--- /dev/null
+++ b/test_deliverable/testcases/test_CHARARRAY0_driver.c
@@ -0,0 +1,12 @@
+#include <string.h>
+
+char *chararray0(char *, char, char, char);
+
+int main()
+{
+ char array[3];
+ char *test_array = "abc";
+ return !( chararray0(array, 'a', 'b', 'c')[0] == test_array[0] &&
+ chararray0(array, 'a', 'b', 'c')[1] == test_array[1] &&
+ chararray0(array, 'a', 'b', 'c')[2] == test_array[2] );
+}