mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
Checked in JUnit for regression purposes.
This commit is contained in:
parent
9951df73a1
commit
749f7547f3
1 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,15 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
|
||||||
|
|
||||||
public class AST2CPPTests extends AST2BaseTest {
|
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 {
|
public void testBug75189() throws Exception {
|
||||||
parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$
|
parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue