1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Test case for bug 266532.

This commit is contained in:
Sergey Prigogin 2009-03-01 23:34:34 +00:00
parent 6240b802f4
commit a5bc44b2bc

View file

@ -2201,7 +2201,7 @@ public class AST2TemplateTests extends AST2BaseTest {
// pair<int, int> p = make_pair(1, 2);
public void testFunctionTemplateWithUsing() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
ICPPFunction fn= bh.assertNonProblem("make_pair(1", 9, ICPPFunction.class);
bh.assertNonProblem("make_pair(1", 9, ICPPFunction.class);
}
// template<class T>
@ -2222,6 +2222,21 @@ public class AST2TemplateTests extends AST2BaseTest {
bh.assertNonProblem("f(a(x));", 1, ICPPFunction.class);
}
// template <class T, class P>
// void f(void (T::*member)(P));
//
// struct A {
// void m(int& p);
// };
//
// void test() {
// f(&A::m);
// }
public void _testFunctionTemplate_266532() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
bh.assertNonProblem("f(&A::m);", 1, ICPPFunction.class);
}
// // Brian W.'s example from bugzilla#167098
// template<class K>
// class D { //CPPClassTemplate