mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Test case for bug 263154.
This commit is contained in:
parent
1ba2a99987
commit
e3ce00a49d
1 changed files with 11 additions and 0 deletions
|
@ -6606,4 +6606,15 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
||||||
ba.assertNonProblem("m(a())", 1, ICPPMethod.class);
|
ba.assertNonProblem("m(a())", 1, ICPPMethod.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// struct A {
|
||||||
|
// int a;
|
||||||
|
// static void m() {
|
||||||
|
// a = 0;
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
public void _testInstanceMemberInStaticMethod_263154() throws Exception {
|
||||||
|
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
||||||
|
ba.assertProblem("a =", 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue