1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

185828: add test case

This commit is contained in:
Andrew Ferguson 2007-05-14 12:45:19 +00:00
parent 4ec3ba2baa
commit 0ae039bf7a

View file

@ -54,6 +54,27 @@ public class IndexCPPBindingResolutionBugs extends IndexBindingResolutionTestBas
setStrategy(new SinglePDOMTestStrategy(true));
}
// template<typename T>
// class C : public C<T> {};
// void foo() {
// C<int>::unresolvable();
// };
public void _test185828() throws Exception {
// Bug 185828 reports a StackOverflowException is thrown before we get here.
// That the SOE is thrown is detected in BaseTestCase via an Error IStatus
IBinding b0= getBindingFromASTName("C", 1);
IBinding b1= getBindingFromASTName("C<int>", 6, true);
IBinding b2= getProblemFromASTName("unresolvable", 12);
assertInstance(b0, ICPPClassType.class);
assertInstance(b0, ICPPClassTemplate.class);
assertInstance(b1, ICPPClassType.class);
assertInstance(b1, ICPPSpecialization.class);
}
// class MyClass {
// public:
// template<class T>