testcase for sideeffects problems
[cparser] / parsetest / shouldfail / wrongtype.c
1 int test(int a, int b);
2
3 int adr(int *x);
4
5 int test1(itn a, int b) {
6         return test(a,b);
7 }
8
9 int test2(int a, int b) {
10         int arr[2];
11
12         arr[0] = a;
13         arr[1] = b;
14
15         adr(arr);
16         return arr[0] + arr[1];
17 }