mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Test case for bug 272848.
This commit is contained in:
parent
954592bc6c
commit
c7b512cbdf
1 changed files with 17 additions and 1 deletions
|
@ -2237,7 +2237,23 @@ public class AST2TemplateTests extends AST2BaseTest {
|
|||
bh.assertNonProblem("f(&A::m);", 1, ICPPFunction.class);
|
||||
}
|
||||
|
||||
// // Brian W.'s example from bugzilla#167098
|
||||
// template<typename T, typename U = int>
|
||||
// class A {};
|
||||
//
|
||||
// template <typename P>
|
||||
// void f(A<P> p);
|
||||
//
|
||||
// class B {};
|
||||
//
|
||||
// void test(A<B> p) {
|
||||
// f(p);
|
||||
// }
|
||||
public void _testFunctionTemplate_272848() throws Exception {
|
||||
final String code = getAboveComment();
|
||||
parseAndCheckBindings(code, ParserLanguage.CPP);
|
||||
}
|
||||
|
||||
// // Brian W.'s example from bugzilla#167098
|
||||
// template<class K>
|
||||
// class D { //CPPClassTemplate
|
||||
// public:
|
||||
|
|
Loading…
Add table
Reference in a new issue