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:
parent
b7e5928c76
commit
83312c621f
1 changed files with 5 additions and 0 deletions
|
@ -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$
|
||||
|
|
Loading…
Add table
Reference in a new issue