From fbbecedc55bd51ce80aded58b552c0b7d9defec0 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 29 Nov 2007 15:01:34 +0000 Subject: [PATCH] kr tests [r18568] --- parsetest/kr.c | 15 +++++++++++++++ parsetest/shouldfail/kr1.c | 16 ++++++++++++++++ parsetest/shouldfail/kr2.c | 14 ++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 parsetest/kr.c create mode 100644 parsetest/shouldfail/kr1.c create mode 100644 parsetest/shouldfail/kr2.c diff --git a/parsetest/kr.c b/parsetest/kr.c new file mode 100644 index 0000000..24c6a8c --- /dev/null +++ b/parsetest/kr.c @@ -0,0 +1,15 @@ + +int a(first, second, third) + float second; + const char *third; + int first; +{ + printf("Args: %d %f %s\n", first, second, third); + return 0; +} + +int main(void) +{ + a(42, 42.42, "What is 6 times 9?\n"); + return 0; +} diff --git a/parsetest/shouldfail/kr1.c b/parsetest/shouldfail/kr1.c new file mode 100644 index 0000000..d593e25 --- /dev/null +++ b/parsetest/shouldfail/kr1.c @@ -0,0 +1,16 @@ + +int a(first, second, third) + float second; + float first; + const char *third; + int first; +{ + printf("Args: %d %f %s\n", first, second, third); + return 0; +} + +int main(void) +{ + a(42, 42.42, "What is 6 times 9?\n"); + return 0; +} diff --git a/parsetest/shouldfail/kr2.c b/parsetest/shouldfail/kr2.c new file mode 100644 index 0000000..dd676f0 --- /dev/null +++ b/parsetest/shouldfail/kr2.c @@ -0,0 +1,14 @@ + +int a(first, second, third) + const char *third; + int first; +{ + printf("Args: %d %f %s\n", first, second, third); + return 0; +} + +int main(void) +{ + a(42, 42.42, "What is 6 times 9?\n"); + return 0; +} -- 2.20.1