mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
A test case for standard conversion sequence rework.
This commit is contained in:
parent
bf4ea7fcca
commit
2e9b63b2c2
1 changed files with 17 additions and 0 deletions
|
@ -3733,4 +3733,21 @@ public class AST2TemplateTests extends AST2BaseTest {
|
||||||
assertFalse(m instanceof ICPPTemplateInstance);
|
assertFalse(m instanceof ICPPTemplateInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// struct A {
|
||||||
|
// void m() const;
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// template<typename T>
|
||||||
|
// struct B : public A {
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// typedef B<char> C;
|
||||||
|
//
|
||||||
|
// void test(const C& p) {
|
||||||
|
// p.m();
|
||||||
|
// }
|
||||||
|
public void testConversionSequence_263159() throws Exception {
|
||||||
|
BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true);
|
||||||
|
ICPPMethod m= bh.assertNonProblem("m();", 1, ICPPMethod.class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue