kr tests
authorMatthias Braun <matze@braunis.de>
Thu, 29 Nov 2007 15:01:34 +0000 (15:01 +0000)
committerMatthias Braun <matze@braunis.de>
Thu, 29 Nov 2007 15:01:34 +0000 (15:01 +0000)
[r18568]

parsetest/kr.c [new file with mode: 0644]
parsetest/shouldfail/kr1.c [new file with mode: 0644]
parsetest/shouldfail/kr2.c [new file with mode: 0644]

diff --git a/parsetest/kr.c b/parsetest/kr.c
new file mode 100644 (file)
index 0000000..24c6a8c
--- /dev/null
@@ -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 (file)
index 0000000..d593e25
--- /dev/null
@@ -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 (file)
index 0000000..dd676f0
--- /dev/null
@@ -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;
+}