testcase for sideeffects problems
[cparser] / parsetest / shouldfail / missing.c
index ca56ec5..63ef447 100644 (file)
@@ -1,4 +1,4 @@
-int test(int a) {
+int test1(int a) {
        if (a > 3) {
                return 1;
        else {
@@ -6,7 +6,14 @@ int test(int a) {
        }
 }
 
+int test2(int a, int b) {
+       return a ? 1 + : 2;
+}
 
 int test3(int b) {
        return (b + ;
 }
+
+int test4(int a) {
+       return test2(a + , a);
+}