Add a couple extra test cases which cover some special behaviours
that are apparently missed by the existing tests.
[declare f as function (...) returning void])
SIMPLE_BADDECL([Reject identifier lists with extra parentheses],
- [explain int f((x))])
+ [explain int f((x))],
+ [explain int f(())],
+ [explain int (())])
SIMPLE_BADDECL([Reject parameter types with extra parentheses],
[explain int ((int))])
SIMPLE_DECLS(
[[int (x*)], [type function (pointer to x) returning int], [int (x *)]])
+SIMPLE_DECLS(
+ [[int (x)()], [declare x as function returning int], [int x()]])
+
+dnl Check that function reduction does not occur in english parses
+SIMPLE_DECLS(
+ [[int (x)], [type function (x) returning int], [], [declare x as int]])
+
SIMPLE_DECLS(
[[int x@<:@@:>@], [declare x as array of int]],
[[int @<:@@:>@], [type array of int]])