X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/438fd434fd51cc2bd17bbdc8a2eb945493a6baa7..901aa884ca82351d946ae0f6c9fb3f222f780a20:/tests/decl-bad.at?ds=sidebyside diff --git a/tests/decl-bad.at b/tests/decl-bad.at index dc21ea1..62af91c 100644 --- a/tests/decl-bad.at +++ b/tests/decl-bad.at @@ -75,11 +75,7 @@ SIMPLE_BADDECL([Reject ... with no formal parameters], SIMPLE_BADDECL([Reject identifier lists with extra parentheses], [explain int f((x))], - [explain int f(())], - [explain int (())]) - -SIMPLE_BADDECL([Reject parameter types with extra parentheses], - [explain int ((int))]) + [explain int f(())]) dnl TODO: Find C&V which actually prohibits these "obviously wrong" dnl declarations. @@ -154,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])