diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index ae1e55b4835..d3c8a6c758a 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -103,6 +103,15 @@ import org.eclipse.cdt.internal.core.parser.ParserException; public class AST2CPPTests extends AST2BaseTest { + public void testBug77967() throws Exception { + StringBuffer buffer = new StringBuffer( "enum type {A};\n" ); //$NON-NLS-1$ + buffer.append( "enum type a, b;\n" ); //$NON-NLS-1$ + buffer.append( "type c; \n" ); //$NON-NLS-1$ + buffer.append( "enum type2 {A, B};\n" ); //$NON-NLS-1$ + buffer.append( "enum type2 d, e; \n" ); //$NON-NLS-1$ + parseAndCheckBindings( buffer.toString() ); + } + public void testBug75189() throws Exception { parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$ }