From 83312c621f835f4a1294f8a66644134f5ea3e923 Mon Sep 17 00:00:00 2001 From: John Camelon Date: Tue, 12 Jul 2005 18:24:39 +0000 Subject: [PATCH] Fixed Bug 43579 [Parser] Pointer To Member JUnit Expression Ref Test Failures Committed test case. --- .../org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | 5 +++++ 1 file changed, 5 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 aee4f0b0099..96a024c8d4e 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 @@ -102,6 +102,11 @@ import org.eclipse.cdt.internal.core.parser.ParserException; public class AST2CPPTests extends AST2BaseTest { + public void testBug43579() throws Exception { + parseAndCheckBindings("class A { int m; }; \n A * a; int A::*pm; \n int f(){} \n int f(int); \n int x = f(a->*pm);"); //$NON-NLS-1$ + parseAndCheckBindings("class A { int m; }; \n A * a; int A::*pm; \n int f(){} \n int f(int); \n int x = f(a->*pm);"); //$NON-NLS-1$ + } + // public void testBug43242() throws Exception { // StringBuffer buffer = new StringBuffer( "class A { int m(int); };\n" ); //$NON-NLS-1$ // buffer.append( "A a; \n" ); //$NON-NLS-1$