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

Fixed Bug 43579 [Parser] Pointer To Member JUnit Expression Ref Test Failures

Committed test case.
This commit is contained in:
John Camelon 2005-07-12 18:24:39 +00:00
parent b7e5928c76
commit 83312c621f

View file

@ -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$