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 14:58:49 +00:00
parent 4c980d6ac9
commit db6c8a053b
2 changed files with 10 additions and 0 deletions

View file

@ -101,6 +101,12 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
*/ */
public class AST2CPPTests extends AST2BaseTest { public class AST2CPPTests extends AST2BaseTest {
public void testBug75189() throws Exception {
parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$
}
public void testBug79540() throws Exception { public void testBug79540() throws Exception {
StringBuffer buffer = new StringBuffer( "#define REF_WRAP(e) class A { public: A (){ } A& foo2(e& v) { return *this; } }\n" ); //$NON-NLS-1$ StringBuffer buffer = new StringBuffer( "#define REF_WRAP(e) class A { public: A (){ } A& foo2(e& v) { return *this; } }\n" ); //$NON-NLS-1$
buffer.append( "class B\n" ); //$NON-NLS-1$ buffer.append( "class B\n" ); //$NON-NLS-1$

View file

@ -89,6 +89,10 @@ import org.eclipse.cdt.internal.core.parser.ParserException;
*/ */
public class AST2Tests extends AST2BaseTest { public class AST2Tests extends AST2BaseTest {
public void testBug75189() throws Exception {
parseAndCheckBindings( "struct A{};typedef int (*F) (A*);" ); //$NON-NLS-1$
}
public void testBug78103() throws Exception { public void testBug78103() throws Exception {
StringBuffer buffer = new StringBuffer( "int *p1; int *p2;\n" ); //$NON-NLS-1$ StringBuffer buffer = new StringBuffer( "int *p1; int *p2;\n" ); //$NON-NLS-1$
buffer.append( "union {\n" ); //$NON-NLS-1$ buffer.append( "union {\n" ); //$NON-NLS-1$