From 749f7547f3dd12bc0b608334b47414d493e362f4 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Thu, 14 Jul 2005 17:41:06 +0000 Subject: [PATCH] Checked in JUnit for regression purposes. --- .../eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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$ }