1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Second test case for bug 271948.

This commit is contained in:
Sergey Prigogin 2009-04-15 06:01:35 +00:00
parent a39047b78c
commit fc31232277

View file

@ -3994,7 +3994,27 @@ public class AST2TemplateTests extends AST2BaseTest {
// void test(B p) { // void test(B p) {
// f(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(); final String code = getAboveComment();
parseAndCheckBindings(code, ParserLanguage.CPP); parseAndCheckBindings(code, ParserLanguage.CPP);
} }