commit d27d299ee050ee5a26d277cbf9839a7d3eb2fb14
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Aug 8 12:09:15 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Sat Aug 8 12:09:15 2015 +0200
Fix test of unexpected name in type name
The test were inverted.
diff --git a/cc1/decl.c b/cc1/decl.c
index 75c159e..3ea8de2 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -423,7 +423,7 @@ type(Symbol *sym, int sclass, Type *data)
{
if (sclass)
error("class storage in type name");
- if (!sym->name)
+ if (sym->name)
error("unexpected identifier in type name");
}