1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 16:26:11 +02:00

Checked in JUnit for regression purposes.

This commit is contained in:
John Camelon 2005-07-14 17:41:06 +00:00
parent 9951df73a1
commit 749f7547f3

View file

@ -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$
}