1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Test case for bug 264109.

This commit is contained in:
Sergey Prigogin 2009-02-09 00:04:23 +00:00
parent 58f6288123
commit 49d7a3d051

View file

@ -2313,26 +2313,6 @@ 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:
@ -3770,4 +3750,24 @@ public class AST2TemplateTests extends AST2BaseTest {
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
ICPPMethod m= bh.assertNonProblem("m();", 1, ICPPMethod.class);
}
// 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);
}
}