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

2005-08-30 Alain Magloire

New test for PR 109202 (written by Devin Steffler)
	* parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
This commit is contained in:
Alain Magloire 2005-08-30 20:16:08 +00:00
parent 63a0d506da
commit 1abe3efac6
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2005-08-30 Alain Magloire
New test for PR 109202 (written by Devin Steffler)
* parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
2005-08-30 Alain Magloire
New test in PR 107150 (written by Devin Steffler)
* parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java

View file

@ -5126,4 +5126,17 @@ public class AST2CPPTests extends AST2BaseTest {
tu = parse(buffer.toString(), ParserLanguage.CPP);
assertFalse( tu.getDeclarations()[1] instanceof IASTProblemDeclaration );
}
public void testBug108202() throws Exception {
StringBuffer buffer = new StringBuffer( );
buffer.append( "class __attribute__((visibility(\"default\"))) FooClass\n"); //$NON-NLS-1$
buffer.append( "{\n"); //$NON-NLS-1$
buffer.append( "int foo();\n"); //$NON-NLS-1$
buffer.append( "};\n"); //$NON-NLS-1$
buffer.append( "int FooClass::foo() {\n"); //$NON-NLS-1$
buffer.append( "return 0;\n"); //$NON-NLS-1$
buffer.append( "}\n"); //$NON-NLS-1$
parse( buffer.toString(), ParserLanguage.CPP, true, true );
}
}