mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added a failing test for inherited constructor template.
This commit is contained in:
parent
fcccfe3807
commit
87539d04dd
1 changed files with 24 additions and 3 deletions
|
@ -1353,7 +1353,7 @@ public class AST2CPPTests extends AST2TestBase {
|
|||
// int test() {
|
||||
// foo(1);
|
||||
// }
|
||||
public void testInheritingConstructor() throws Exception {
|
||||
public void testInheritedConstructor() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
|
||||
|
@ -1371,7 +1371,7 @@ public class AST2CPPTests extends AST2TestBase {
|
|||
// int test() {
|
||||
// foo(1);
|
||||
// }
|
||||
public void testInheritingConstructorWithTemplate_1() throws Exception {
|
||||
public void testInheritedConstructorFromTemplateInstance() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
|
||||
|
@ -1389,7 +1389,28 @@ public class AST2CPPTests extends AST2TestBase {
|
|||
// int test() {
|
||||
// foo(1);
|
||||
// }
|
||||
public void testInheritingConstructorWithTemplate_2() throws Exception {
|
||||
public void testInheritedConstructorFromUnknownClass() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
|
||||
// template <typename T>
|
||||
// struct A {};
|
||||
//
|
||||
// struct B {
|
||||
// template <typename T>
|
||||
// B(const A<T>&, int i = 3);
|
||||
// };
|
||||
//
|
||||
// struct C : public B {
|
||||
// using B::B;
|
||||
// };
|
||||
//
|
||||
// void foo(C);
|
||||
//
|
||||
// void test(A<int> a) {
|
||||
// foo(a);
|
||||
// }
|
||||
public void _testInheritedTemplateConstructor() throws Exception {
|
||||
parseAndCheckBindings();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue