cparser crashes...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 28 May 2008 13:24:15 +0000 (13:24 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 28 May 2008 13:24:15 +0000 (13:24 +0000)
[r19811]

parsetest/cp_error030.c [new file with mode: 0644]

diff --git a/parsetest/cp_error030.c b/parsetest/cp_error030.c
new file mode 100644 (file)
index 0000000..eed6dd7
--- /dev/null
@@ -0,0 +1,17 @@
+int test(int a, int b);
+
+int adr(int *x);
+
+int test1(int a, int b) {
+       return test(a,b);
+}
+
+int test2(int a, int b) {
+       int arr[2];
+
+       arr[0] = a;
+       arr[1] = b;
+
+       adr(arr);
+       return arr[0] + arr[1];
+}