Douglas Gregor | befc20e | 2009-03-26 00:10:35 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
3 | template<typename T> | ||||
4 | struct X { | ||||
5 | X<T*> *ptr; | ||||
6 | }; | ||||
7 | |||||
8 | X<int> x; | ||||
9 | |||||
10 | template<> | ||||
11 | struct X<int***> { | ||||
12 | typedef X<int***> *ptr; | ||||
13 | }; | ||||
14 | |||||
15 | // FIXME: EDG rejects this in their strict-conformance mode, but I | ||||
16 | // don't see any wording making this ill-formed. | ||||
17 | X<float>::X<int> xi = x; |