1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Checked in JUnit for regression purposes.

This commit is contained in:
John Camelon 2005-07-14 17:59:36 +00:00
parent 8fc510ab97
commit ca3d6ea937

View file

@ -103,6 +103,19 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
public class AST2CPPTests extends AST2BaseTest {
public void testBug78883() throws Exception {
StringBuffer buffer = new StringBuffer("class B {\n"); //$NON-NLS-1$
buffer.append("public:\n"); //$NON-NLS-1$
buffer.append("B( int t );\n"); //$NON-NLS-1$
buffer.append("};\n"); //$NON-NLS-1$
buffer.append("class A : public B {\n"); //$NON-NLS-1$
buffer.append("public:\n"); //$NON-NLS-1$
buffer.append("A( int t );\n"); //$NON-NLS-1$
buffer.append("};\n"); //$NON-NLS-1$
buffer.append("A::A( int t ) : B( t - 1 ){}\n"); //$NON-NLS-1$
parseAndCheckBindings(buffer.toString());
}
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$