mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Simplified test case for bug 263159.
This commit is contained in:
parent
8c2f625a89
commit
0c70640ddc
1 changed files with 5 additions and 8 deletions
|
@ -6629,16 +6629,13 @@ public class AST2CPPTests extends AST2BaseTest {
|
||||||
ba.assertNonProblem("a", 1, ICPPVariable.class);
|
ba.assertNonProblem("a", 1, ICPPVariable.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
// const char x[] = "";
|
// void f(int x);
|
||||||
//
|
//
|
||||||
// void f(const char* p);
|
// void test(int* p) {
|
||||||
// void f(char p);
|
// f(p);
|
||||||
//
|
|
||||||
// void test() {
|
|
||||||
// f(x); // problem on f
|
|
||||||
// }
|
// }
|
||||||
public void _testArrayParameter_263159() throws Exception {
|
public void _testPointerToNonPointerConversion_263159() throws Exception {
|
||||||
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
BindingAssertionHelper ba= new BindingAssertionHelper(getAboveComment(), true);
|
||||||
ba.assertNonProblem("f(x)", 1, ICPPFunction.class);
|
ba.assertProblem("f(p)", 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue