From a3e28c60b97fd96182727715ba15ed0cc713597a Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 3 Dec 2011 16:49:16 +0000 Subject: Correct array initialization, add testcase --- tests/array-local.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/array-local.c (limited to 'tests/array-local.c') diff --git a/tests/array-local.c b/tests/array-local.c new file mode 100644 index 0000000..7f9d274 --- /dev/null +++ b/tests/array-local.c @@ -0,0 +1,6 @@ +int main(){ + int n = 4; + int a[] = {5, 4, 3, n}; + // should return 5 + 4 + 4 = 13 = 0xd + return *a + a[1] + a[3]; +} -- cgit v1.2.1