From 827b10842aa9a4a20361b3dfe883c94b2e7fd51d Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 31 May 2008 07:55:33 +0000 Subject: [PATCH] shouldfail tests for prototype checking [r19877] --- parsetest/shouldfail/call1.c | 7 +++++++ parsetest/shouldfail/call2.c | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 parsetest/shouldfail/call1.c create mode 100644 parsetest/shouldfail/call2.c diff --git a/parsetest/shouldfail/call1.c b/parsetest/shouldfail/call1.c new file mode 100644 index 0000000..a63435c --- /dev/null +++ b/parsetest/shouldfail/call1.c @@ -0,0 +1,7 @@ +int test(int a) { + return a; +} + +int main(void) { + return test(0, 2); +} diff --git a/parsetest/shouldfail/call2.c b/parsetest/shouldfail/call2.c new file mode 100644 index 0000000..ff97ee4 --- /dev/null +++ b/parsetest/shouldfail/call2.c @@ -0,0 +1,7 @@ +int test(int a, int b) { + return a + b; +} + +int main(void) { + return test(0); +} -- 2.20.1