From 0c70640ddcb48b5d3334b6b7fbfdcf942ec0920e Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sun, 1 Feb 2009 04:13:40 +0000 Subject: [PATCH] Simplified test case for bug 263159. --- .../cdt/core/parser/tests/ast2/AST2CPPTests.java | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java index cf2fa4ac895..f90a3a06ecd 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java @@ -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); } }