aboutsummaryrefslogtreecommitdiff
path: root/testcases/pass.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-11 16:04:48 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-11 16:04:48 +0800
commite2a62314728202e71a4daa2b7ff418994334fb83 (patch)
treefc08f679900bed17070c520bddc74546c396bbf9 /testcases/pass.c
parenta19c85b2b0c70db4e87efe129da38ea870f8971c (diff)
array length checking
Diffstat (limited to 'testcases/pass.c')
-rw-r--r--testcases/pass.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/testcases/pass.c b/testcases/pass.c
index e762a5b..d70d9d8 100644
--- a/testcases/pass.c
+++ b/testcases/pass.c
@@ -90,6 +90,10 @@ int incomp(struct I a);
void (*bsd_signal(int sig, void (*func)(int a)))(int b);
+void array() {
+ int a[(1 + 1 == 2) * 2];
+}
+
struct Node n;
struct Node {int x, y;} n;
/* global forward declaration is ok */