From db6c8a053b5c9d01e98233e13531d7843eb7a454 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Thu, 14 Jul 2005 14:58:49 +0000 Subject: [PATCH] Checked in JUnit for regression purposes. --- .../eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 6 ++++++ .../org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | 4 ++++ 2 files changed, 10 insertions(+) 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 c153f94ba85..5e6765e7136 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 @@ -101,6 +101,12 @@ import org.eclipse.cdt.internal.core.parser.ParserException; */ 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 { 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$ diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java index 2fbd2aada35..9de56e33a56 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java @@ -89,6 +89,10 @@ import org.eclipse.cdt.internal.core.parser.ParserException; */ 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 { StringBuffer buffer = new StringBuffer( "int *p1; int *p2;\n" ); //$NON-NLS-1$ buffer.append( "union {\n" ); //$NON-NLS-1$