aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-12 14:03:13 +0800
committerTeddy <[email protected]>2014-04-12 14:03:13 +0800
commit7ccbcf35aeea9105d8da37925885d4957bccbbc6 (patch)
tree66e262f85c71f17ced66d8f2958541e85b6935c5 /testcases
parent9cc93718d81f6b0ddaac3493ccfa695c5bbf9d99 (diff)
parent0d835d0de3b7e71141997eac9cce237ce4bef6c7 (diff)
Merge branch 'master' into new_scope_design
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();
+}