1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Test case for bug 264109.

This commit is contained in:
Sergey Prigogin 2009-02-09 00:02:50 +00:00
parent 83ac816fc2
commit 58f6288123

View file

@ -2312,7 +2312,27 @@ public class AST2TemplateTests extends AST2BaseTest {
}
}
}
// template <class C> class A;
//
// template <class C>
// A<C> make_A(C* p);
//
// template <class C>
// struct A {
// A(C* p);
// friend A<C> make_A<C>(C* p);
// };
//
// template <class C>
// A<C> make_A(C* p) {
// return A<C>(p);
// }
public void testForwardDeclarations_264109() throws Exception {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
bh.assertNonProblem("A<C> make_A(C* p) {", 4, ICPPTemplateInstance.class);
}
// template<typename _TpAllocator>
// class Allocator {
// public: