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:
parent
83ac816fc2
commit
58f6288123
1 changed files with 21 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue