diff options
Diffstat (limited to 'pattern/should-pass.cmm')
-rw-r--r-- | pattern/should-pass.cmm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pattern/should-pass.cmm b/pattern/should-pass.cmm new file mode 100644 index 0000000..4bb3ac4 --- /dev/null +++ b/pattern/should-pass.cmm @@ -0,0 +1,10 @@ +/* Allow parm_list to be "void" */ +void main(void) { + int a[1], n = 10; + + /* Allow array dereference in assign_expr_list */ + for (a[1] = 0; a[1] < n; a[1] = a[1] + 1); +} + +/* Allow var_decl or type_decl to be the last global_decl */ +int unused; |