From 54985ef7ef453bf45e3b8d4ab7be86b2337a71bc Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 14 Mar 2008 10:14:05 +0000 Subject: [PATCH] add a test for the new anchor based error recovery [r18937] --- parsetest/shouldfail/missing.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 parsetest/shouldfail/missing.c diff --git a/parsetest/shouldfail/missing.c b/parsetest/shouldfail/missing.c new file mode 100644 index 0000000..ca56ec5 --- /dev/null +++ b/parsetest/shouldfail/missing.c @@ -0,0 +1,12 @@ +int test(int a) { + if (a > 3) { + return 1; + else { + return 2; + } +} + + +int test3(int b) { + return (b + ; +} -- 2.20.1