Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2005-08-30 16:16:08 -0400
committerAlain Magloire2005-08-30 16:16:08 -0400
commit1abe3efac6dbc33c0bc6229d21d42874366fb2d4 (patch)
treea0364b37b05dca58f25f31ed7bd108430e0f6680
parent63a0d506daad081d909f60887cdc983728959fa8 (diff)
downloadorg.eclipse.cdt-1abe3efac6dbc33c0bc6229d21d42874366fb2d4.tar.gz
org.eclipse.cdt-1abe3efac6dbc33c0bc6229d21d42874366fb2d4.tar.xz
org.eclipse.cdt-1abe3efac6dbc33c0bc6229d21d42874366fb2d4.zip
2005-08-30 Alain Magloire
New test for PR 109202 (written by Devin Steffler) * parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
-rw-r--r--core/org.eclipse.cdt.core.tests/ChangeLog4
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java13
2 files changed, 17 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core.tests/ChangeLog b/core/org.eclipse.cdt.core.tests/ChangeLog
index 0ce25cd516..16112943da 100644
--- a/core/org.eclipse.cdt.core.tests/ChangeLog
+++ b/core/org.eclipse.cdt.core.tests/ChangeLog
@@ -1,4 +1,8 @@
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
* parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
index ba91a62cce..221a3f5fec 100644
--- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
+++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java
@@ -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 );
+ }
}

Back to the top