aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
Diffstat (limited to 'testcases')
-rw-r--r--testcases/decl_comp.c5
-rw-r--r--testcases/decl_comp2.c5
-rw-r--r--testcases/decl_comp3.c4
3 files changed, 14 insertions, 0 deletions
diff --git a/testcases/decl_comp.c b/testcases/decl_comp.c
new file mode 100644
index 0000000..f1b8bd2
--- /dev/null
+++ b/testcases/decl_comp.c
@@ -0,0 +1,5 @@
+int f();
+int f(int a);
+int main() {
+ f(1, 2);
+}
diff --git a/testcases/decl_comp2.c b/testcases/decl_comp2.c
new file mode 100644
index 0000000..f1298bd
--- /dev/null
+++ b/testcases/decl_comp2.c
@@ -0,0 +1,5 @@
+int f(int a);
+int f() {
+}
+int main() {
+}
diff --git a/testcases/decl_comp3.c b/testcases/decl_comp3.c
new file mode 100644
index 0000000..29d388f
--- /dev/null
+++ b/testcases/decl_comp3.c
@@ -0,0 +1,4 @@
+int f();
+int f(int a) {
+ f();
+}