mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +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);
|
||||
}
|
||||
|
||||
// const char x[] = "";
|
||||
// void f(int x);
|
||||
//
|
||||
// void f(const char* p);
|
||||
// void f(char p);
|
||||
//
|
||||
// void test() {
|
||||
// f(x); // problem on f
|
||||
// void test(int* p) {
|
||||
// f(p);
|
||||
// }
|
||||
public void _testArrayParameter_263159() throws Exception {
|
||||
public void _testPointerToNonPointerConversion_263159() throws Exception {
|
||||
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