X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/b2e3cab6544444137fe7aadee2a991adbfde97c4..b898202c175f8502d9cb552f3ab784c8f8677a27:/tests/decl-bad.at diff --git a/tests/decl-bad.at b/tests/decl-bad.at index c8b225e..62af91c 100644 --- a/tests/decl-bad.at +++ b/tests/decl-bad.at @@ -74,10 +74,8 @@ SIMPLE_BADDECL([Reject ... with no formal parameters], [declare f as function (...) returning void]) SIMPLE_BADDECL([Reject identifier lists with extra parentheses], - [explain int f((x))]) - -SIMPLE_BADDECL([Reject parameter types with extra parentheses], - [explain int ((int))]) + [explain int f((x))], + [explain int f(())]) dnl TODO: Find C&V which actually prohibits these "obviously wrong" dnl declarations. @@ -152,3 +150,7 @@ SIMPLE_BADDECL([Reject multiple declarators in type names], SIMPLE_BADDECL([Error recovery on multiple object declaration], [explain int inline x, y]) + +SIMPLE_BADDECL([Reject hyphens in identifiers], + [explain int ac-dc], + [explain int variable-length])