aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/test/in/15.c
diff options
context:
space:
mode:
Diffstat (limited to 'c_parser/test/in/15.c')
-rw-r--r--c_parser/test/in/15.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/c_parser/test/in/15.c b/c_parser/test/in/15.c
new file mode 100644
index 0000000..3189b56
--- /dev/null
+++ b/c_parser/test/in/15.c
@@ -0,0 +1,28 @@
+int add(int a, int b)
+{
+ int c = a + b;
+ return c;
+}
+
+int sub(int a, int b)
+{
+ int c = a - b;
+ return c;
+}
+
+int mult_by_5(int a)
+{
+ int b = 5;
+ return a * b;
+}
+
+int add_5(int a)
+{
+ int i;
+ for(i = 0; i < 5; ++i)
+ {
+ int b = ++a;
+ }
+
+ return a;
+}