diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java index 850dbb7f457..eca22cd5b27 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java @@ -2270,6 +2270,24 @@ public class AST2TemplateTests extends AST2BaseTest { parseAndCheckBindings(code, ParserLanguage.CPP); } + // template + // class A {}; + // + // class B {}; + // + // template + // void f1(const A& a, void (*f)(const U&)); + // + // void f2(const B& b); + // + // void test(A x) { + // f1(x, &f2); + // } + public void _testFunctionTemplateWithFunctionPointer_281783() throws Exception { + BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true); + bh.assertNonProblem("f1(x, &f2);", 2, ICPPFunction.class); + } + // // Brian W.'s example from bugzilla#167098 // template // class D { //CPPClassTemplate