X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=parsetest%2Fshouldfail%2Fmissing.c;h=63ef4475fe34d1914a9272eed1cc8dda7152415f;hb=68c5da90234d8956dac083c5f9fd1cae96a7317c;hp=ca56ec5cd4d2b5ecb19f6514ae8de64111029030;hpb=54985ef7ef453bf45e3b8d4ab7be86b2337a71bc;p=cparser diff --git a/parsetest/shouldfail/missing.c b/parsetest/shouldfail/missing.c index ca56ec5..63ef447 100644 --- a/parsetest/shouldfail/missing.c +++ b/parsetest/shouldfail/missing.c @@ -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); +}