aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/test/in
diff options
context:
space:
mode:
Diffstat (limited to 'c_parser/test/in')
-rw-r--r--c_parser/test/in/01.c6
-rw-r--r--c_parser/test/in/02.c1
-rw-r--r--c_parser/test/in/03.c1
-rw-r--r--c_parser/test/in/04.c4
-rw-r--r--c_parser/test/in/05.c3
-rw-r--r--c_parser/test/in/06.c6
-rw-r--r--c_parser/test/in/07.c3
7 files changed, 24 insertions, 0 deletions
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;
+}
diff --git a/c_parser/test/in/05.c b/c_parser/test/in/05.c
new file mode 100644
index 0000000..a5ac579
--- /dev/null
+++ b/c_parser/test/in/05.c
@@ -0,0 +1,3 @@
+int foo(int x, int y) {
+ {}
+}
diff --git a/c_parser/test/in/06.c b/c_parser/test/in/06.c
new file mode 100644
index 0000000..f182bd9
--- /dev/null
+++ b/c_parser/test/in/06.c
@@ -0,0 +1,6 @@
+int f(int a, int b, int c) {
+ int d;
+ {
+ int e;
+ }
+}
diff --git a/c_parser/test/in/07.c b/c_parser/test/in/07.c
new file mode 100644
index 0000000..baa3ba5
--- /dev/null
+++ b/c_parser/test/in/07.c
@@ -0,0 +1,3 @@
+if(x == y) {
+ int z;
+}