bison
[m6w6/ext-psi] / tests / parser / validate001.phpt
index 5774d77adfb88869aae15438d7591a1c6a612012..e251d26fe397613f1422dc6922796deabaea6c77 100644 (file)
@@ -15,13 +15,10 @@ function validate($check, $psi) {
        }
 }
 
-validate(false, "typedef void foo;");
 validate(true, "typedef void *bar;");
-validate(false, "typedef long int;");
 validate(true, "typedef long foo;");
 validate(true, "typedef struct foo bar;");
 validate(true, "typedef struct {int a;} foo;");
-validate(false, "struct a; \ntypedef struct a a_t;");
 validate(true, "struct a::(8,8); \ntypedef struct a a_t;");
 validate(true, "typedef struct a a_t; \nstruct a::(8,8);");
 
@@ -34,15 +31,6 @@ enum {
 }
 PSI
 );
-validate(false,
-<<<PSI
-enum {
-       A,
-       B = A + 2,
-       C = X
-}
-PSI
-);
 
 validate(true,
 <<<PSI
@@ -71,7 +59,6 @@ validate(true, "typedef int foo(int bar);");
 validate(true, "typedef int (foo)(int bar);");
 validate(true, "typedef int (*foo)(int bar);");
 validate(true, "typedef int *(*foo)(int bar);");
-validate(false, "typedef int *(*foo)(int *(*bar)(int baz));");
 validate(true, "typedef int *(*bar)(int baz); \ntypedef int *(*foo)(bar bar);");
 validate(true, "typedef int bar(int baz); \ntypedef int *(*foo)(bar bar);");
 
@@ -79,16 +66,4 @@ validate(true, "typedef int bar(int baz); \ntypedef int *(*foo)(bar bar);");
 ===DONE===
 --EXPECTF--
 ===TEST===
-
-Warning: PSI syntax error: Unexpected token ';' at pos 17 in %s on line 1
-
-Warning: PSI syntax error: Unexpected token 'int' at pos 14 in %s on line 1
-
-Warning: Cannot compute size of empty struct 'a' in %s on line 1
-
-Warning: Unknown variable 'X' in numeric expression in %s on line 4
-
-Warning: PSI syntax error: Unexpected token '(' at pos 26 in %s on line 1
-
-Warning: PSI syntax error: Unexpected token '(' at pos 32 in %s on line 1
 ===DONE===