1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

180948: fix CCE

This commit is contained in:
Andrew Ferguson 2007-04-04 15:38:56 +00:00
parent 1152d73794
commit 95058d83f4

View file

@ -160,4 +160,25 @@ public class IndexBindingResolutionBugs extends IndexBindingResolutionTestBase {
assertTrue(binding instanceof ICPPVariable);
IScope scope= binding.getScope();
}
// class A{};
//
// template<typename T>
// T id (T t) {return t;}
//
// template<>
// A id (A a) {return a;}
//
// int id(int x) {return x;}
// void foo() {
// id(*new A());
// id(6);
// }
public void testBug180948() throws Exception {
// Main check occurs in BaseTestCase - that no ClassCastException
// is thrown during indexing
IBinding b0= getBindingFromASTName("id(*", 2);
IBinding b1= getBindingFromASTName("id(6", 2);
}
}