mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
Bug 408314. Added a test case.
This commit is contained in:
parent
724e1991ac
commit
8273ca2e5f
1 changed files with 23 additions and 0 deletions
|
@ -7578,6 +7578,29 @@ public class AST2TemplateTests extends AST2TestBase {
|
||||||
parseAndCheckBindings();
|
parseAndCheckBindings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// template<class T>
|
||||||
|
// struct A {
|
||||||
|
// T a;
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// template<typename T>
|
||||||
|
// struct B {
|
||||||
|
// typedef T* pointer;
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// template <class U>
|
||||||
|
// struct C : public B<A<U>> {
|
||||||
|
// typedef typename C::pointer pointer;
|
||||||
|
// };
|
||||||
|
//
|
||||||
|
// void test() {
|
||||||
|
// C<int>::pointer p;
|
||||||
|
// p->a = 0;
|
||||||
|
// }
|
||||||
|
public void testRegression_408314() throws Exception {
|
||||||
|
parseAndCheckBindings();
|
||||||
|
}
|
||||||
|
|
||||||
// template <typename T>
|
// template <typename T>
|
||||||
// void foo(T t) {
|
// void foo(T t) {
|
||||||
// bar(t);
|
// bar(t);
|
||||||
|
|
Loading…
Add table
Reference in a new issue