aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-12 11:11:34 +0800
committerTeddy <[email protected]>2014-04-12 11:11:34 +0800
commit0d835d0de3b7e71141997eac9cce237ce4bef6c7 (patch)
tree1b897ada4967b2baa8771ad1a74a2694bdcfc3dc /testcases
parentad4582dfc2bb0c50d6972881ed845a473c40ca71 (diff)
add testcases
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();
+}