aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-13 18:27:30 +0800
committerTeddy <[email protected]>2014-04-13 18:27:30 +0800
commit63d47979eff3736da8c479cf3eea6399c0179736 (patch)
tree79897af2697cb53e4c5df93dfd309edbb0a20f69 /testcases
parentf881fd3eba1cafa1bea1f098ce8f383b4d6813ea (diff)
...
Diffstat (limited to 'testcases')
-rw-r--r--testcases/array_decl.c6
-rw-r--r--testcases/array_decl2.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/testcases/array_decl.c b/testcases/array_decl.c
new file mode 100644
index 0000000..33973e5
--- /dev/null
+++ b/testcases/array_decl.c
@@ -0,0 +1,6 @@
+int f(int a[1][3][2]) {
+}
+int main() {
+ int a[3][3][2];
+ f(a);
+}
diff --git a/testcases/array_decl2.c b/testcases/array_decl2.c
new file mode 100644
index 0000000..d7f8a04
--- /dev/null
+++ b/testcases/array_decl2.c
@@ -0,0 +1,7 @@
+int f(int a[20][2][2]);
+int f(int a[1][3][2]) {
+}
+int main() {
+ int a[3][3][2];
+ f(a);
+}