mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix test for 43242
This commit is contained in:
parent
eb486d9b9a
commit
4e5f1e1fd9
1 changed files with 10 additions and 10 deletions
|
@ -130,16 +130,16 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
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$
|
||||||
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 {
|
public void testBug43242() throws Exception {
|
||||||
// StringBuffer buffer = new StringBuffer( "class A { int m(int); };\n" ); //$NON-NLS-1$
|
StringBuffer buffer = new StringBuffer( "class A { int m(int); };\n" ); //$NON-NLS-1$
|
||||||
// buffer.append( "A a; \n" ); //$NON-NLS-1$
|
buffer.append( "A a; \n" ); //$NON-NLS-1$
|
||||||
// buffer.append( "int A::*pm = &A::m;\n" ); //$NON-NLS-1$
|
buffer.append( "int (A::*pm)(int) = &A::m;\n" ); //$NON-NLS-1$
|
||||||
// buffer.append( "int f(){} \n" ); //$NON-NLS-1$
|
buffer.append( "int f(){} \n" ); //$NON-NLS-1$
|
||||||
// buffer.append( "int f(int); \n" ); //$NON-NLS-1$
|
buffer.append( "int f(int); \n" ); //$NON-NLS-1$
|
||||||
// buffer.append( "int x = f((a.*pm)(5));\n" ); //$NON-NLS-1$
|
buffer.append( "int x = f((a.*pm)(5));\n" ); //$NON-NLS-1$
|
||||||
// parseAndCheckBindings( buffer.toString() );
|
parseAndCheckBindings( buffer.toString() );
|
||||||
// }
|
}
|
||||||
|
|
||||||
public void testBug43241() throws Exception {
|
public void testBug43241() throws Exception {
|
||||||
parseAndCheckBindings( "int m(int); int (*pm)(int) = &m; int f(){} int f(int); int x = f((*pm)(5));" ); //$NON-NLS-1$
|
parseAndCheckBindings( "int m(int); int (*pm)(int) = &m; int f(){} int f(int); int x = f((*pm)(5));" ); //$NON-NLS-1$
|
||||||
|
|
Loading…
Add table
Reference in a new issue