1
0
Fork 0
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:
Sergey Prigogin 2009-02-01 04:13:40 +00:00
parent 8c2f625a89
commit 0c70640ddc

View file

@ -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);
}
}