summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/dependent-names.cpp
blob: 95ee2d2b9d1fd93a633bfeaa2f8066ae72c8866e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: clang-cc -fsyntax-only -verify %s 

typedef double A;
template<typename T> class B {
  typedef int A;
};

template<typename T> struct X : B<T> {
  static A a;
};

int a0[sizeof(X<int>::a) == sizeof(double) ? 1 : -1];

// PR4365.
template<class T> class Q;
template<class T> class R : Q<T> {T current;};
OpenPOWER on IntegriCloud