mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 20:05:35 +02:00
Second test case for bug 272848.
This commit is contained in:
parent
b73e485897
commit
1c93d8ad9e
1 changed files with 18 additions and 1 deletions
|
@ -2248,7 +2248,24 @@ public class AST2TemplateTests extends AST2BaseTest {
|
||||||
// void test(A<B> p) {
|
// void test(A<B> p) {
|
||||||
// f(p);
|
// f(p);
|
||||||
// }
|
// }
|
||||||
public void testFunctionTemplate_272848() throws Exception {
|
public void testFunctionTemplate_272848_1() throws Exception {
|
||||||
|
final String code = getAboveComment();
|
||||||
|
parseAndCheckBindings(code, ParserLanguage.CPP);
|
||||||
|
}
|
||||||
|
|
||||||
|
// template <typename S>
|
||||||
|
// class B {};
|
||||||
|
//
|
||||||
|
// template <typename T, typename U = B<T> >
|
||||||
|
// class A {};
|
||||||
|
//
|
||||||
|
// template <typename P>
|
||||||
|
// void f(A<P*> p);
|
||||||
|
//
|
||||||
|
// void test(A<int*> p) {
|
||||||
|
// f(p);
|
||||||
|
// }
|
||||||
|
public void _testFunctionTemplate_272848_2() throws Exception {
|
||||||
final String code = getAboveComment();
|
final String code = getAboveComment();
|
||||||
parseAndCheckBindings(code, ParserLanguage.CPP);
|
parseAndCheckBindings(code, ParserLanguage.CPP);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue