mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Second test case for bug 271948.
This commit is contained in:
parent
a39047b78c
commit
fc31232277
1 changed files with 21 additions and 1 deletions
|
@ -3994,7 +3994,27 @@ public class AST2TemplateTests extends AST2BaseTest {
|
|||
// void test(B p) {
|
||||
// f(p);
|
||||
// }
|
||||
public void _testTemplateConversionOperator_271948() throws Exception {
|
||||
public void _testTemplateConversionOperator_271948_1() throws Exception {
|
||||
final String code = getAboveComment();
|
||||
parseAndCheckBindings(code, ParserLanguage.CPP);
|
||||
}
|
||||
|
||||
// template <typename T>
|
||||
// struct A {
|
||||
// };
|
||||
//
|
||||
// template <class U>
|
||||
// struct B {
|
||||
// template <typename T>
|
||||
// operator A<T>();
|
||||
// };
|
||||
//
|
||||
// void f(A<char*> p);
|
||||
//
|
||||
// void test(B<int> p) {
|
||||
// f(p);
|
||||
// }
|
||||
public void _testTemplateConversionOperator_271948_2() throws Exception {
|
||||
final String code = getAboveComment();
|
||||
parseAndCheckBindings(code, ParserLanguage.CPP);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue