aboutsummaryrefslogtreecommitdiffstats
path: root/test_deliverable/testcases/test_POINTARR.c
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-28 19:42:58 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-03-28 19:42:58 +0100
commitb72ddcdd509e19f95a58a0497344b546a3ad3c50 (patch)
tree872c9c1126f27d3fe6d8c82b3d7360efdc2e8ec2 /test_deliverable/testcases/test_POINTARR.c
parent21e4016317af3eaf03ffc36bfd90a7a2af4a354f (diff)
downloadCompiler-b72ddcdd509e19f95a58a0497344b546a3ad3c50.tar.gz
Compiler-b72ddcdd509e19f95a58a0497344b546a3ad3c50.zip
working array references
Diffstat (limited to 'test_deliverable/testcases/test_POINTARR.c')
-rw-r--r--test_deliverable/testcases/test_POINTARR.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test_deliverable/testcases/test_POINTARR.c b/test_deliverable/testcases/test_POINTARR.c
new file mode 100644
index 0000000..bafd4bc
--- /dev/null
+++ b/test_deliverable/testcases/test_POINTARR.c
@@ -0,0 +1,10 @@
+int pointarr(int *a, int b, int c, int d, int e)
+{
+ int x[2][2] = {
+ {b, c},
+ {d, e}
+ };
+
+ a = &x[0][1];
+ return *a;
+}