From c85746b6a6c3080bac409e0acb8cc8b332b2761e Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 17 Feb 2017 17:27:38 +0000 Subject: Finished compound statement for function and added test cases --- c_parser/test/in/01.c | 6 ++++++ c_parser/test/in/02.c | 1 + c_parser/test/in/03.c | 1 + c_parser/test/in/04.c | 4 ++++ 4 files changed, 12 insertions(+) create mode 100644 c_parser/test/in/01.c create mode 100644 c_parser/test/in/02.c create mode 100644 c_parser/test/in/03.c create mode 100644 c_parser/test/in/04.c (limited to 'c_parser/test/in') diff --git a/c_parser/test/in/01.c b/c_parser/test/in/01.c new file mode 100644 index 0000000..76425b5 --- /dev/null +++ b/c_parser/test/in/01.c @@ -0,0 +1,6 @@ +int a; +int b = 0; +int c, d; + +int e, + f; diff --git a/c_parser/test/in/02.c b/c_parser/test/in/02.c new file mode 100644 index 0000000..45b1467 --- /dev/null +++ b/c_parser/test/in/02.c @@ -0,0 +1 @@ +int f() {} diff --git a/c_parser/test/in/03.c b/c_parser/test/in/03.c new file mode 100644 index 0000000..e57aaa9 --- /dev/null +++ b/c_parser/test/in/03.c @@ -0,0 +1 @@ +int foo(int bar) {} diff --git a/c_parser/test/in/04.c b/c_parser/test/in/04.c new file mode 100644 index 0000000..0e50c88 --- /dev/null +++ b/c_parser/test/in/04.c @@ -0,0 +1,4 @@ +int foo(int bar1, int bar2) { + int x; + int y, z; +} -- cgit