aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/injected-class-name.cpp
blob: 43fb454bca52c5ff0a79dab38cdf3075c693d79e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: clang-cc -fsyntax-only -verify %s

template<typename T>
struct X {
  X<T*> *ptr;
};

X<int> x;

template<>
struct X<int***> {
  typedef X<int***> *ptr;
};

// FIXME: EDG rejects this in their strict-conformance mode, but I
// don't see any wording making this ill-formed.
X<float>::X<int> xi = x;