diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | pattern/should-pass.cmm | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index e53b692..4d45538 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,6 +12,7 @@ EXTRA_DIST = \ pattern/not-scalar-or-array.cmm \ pattern/not-type.cmm \ pattern/not-var.cmm \ + pattern/should-pass.cmm \ pattern/string-expr.cmm \ pattern/void-expr.cmm \ pattern/void-var-and-array.cmm \ 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; |