summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2011-12-06 15:53:44 +0000
committerPeter Wu <lekensteyn@gmail.com>2011-12-06 15:53:44 +0000
commit96333bbb306f7141dee99dc01a9afff8bc7b114b (patch)
tree3b1e73a4f3d7b3ce19611eb9a1ab96ce3b411db0 /tests
parente63ed727141798cf38024ec1f0b0eca449c70621 (diff)
downloadpp2cc-96333bbb306f7141dee99dc01a9afff8bc7b114b.tar.gz
Add testcase for function params
Diffstat (limited to 'tests')
-rw-r--r--tests/params.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/params.c b/tests/params.c
new file mode 100644
index 0000000..eb91b83
--- /dev/null
+++ b/tests/params.c
@@ -0,0 +1,9 @@
+int square(int x) {
+ return x * x;
+}
+int main() {
+ int x;
+ x = square(9);// 81
+ e:goto e;
+ return x;
+}