]> git.draconx.ca Git - cdecl99.git/blobdiff - tests/decl-bad.at
Port to use getline.h from dxcommon.
[cdecl99.git] / tests / decl-bad.at
index c8b225e0cf32677571ec86b1a388f416c0e537ba..62af91ccd1240b0bdcd5c7efd73e513f93db8c3b 100644 (file)
@@ -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])