From 0d835d0de3b7e71141997eac9cce237ce4bef6c7 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 12 Apr 2014 11:11:34 +0800 Subject: add testcases --- testcases/decl_comp.c | 5 +++++ testcases/decl_comp2.c | 5 +++++ testcases/decl_comp3.c | 4 ++++ 3 files changed, 14 insertions(+) create mode 100644 testcases/decl_comp.c create mode 100644 testcases/decl_comp2.c create mode 100644 testcases/decl_comp3.c 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(); +} -- cgit v1.2.3-70-g09d2