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:
parent
8fc510ab97
commit
ca3d6ea937
1 changed files with 13 additions and 0 deletions
|
@ -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$
|
||||
|
|
Loading…
Add table
Reference in a new issue