]> git.draconx.ca Git - cdecl99.git/blobdiff - tests/decl-bad.at
tests: Add sanity test for variable-length arrays.
[cdecl99.git] / tests / decl-bad.at
index dc21ea112e311fe3cc39b38baf38e4149120d32e..62af91ccd1240b0bdcd5c7efd73e513f93db8c3b 100644 (file)
@@ -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])