aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-6.C
blob: e0faf2bcb2da9fb35d094eff2a4057bce16d0bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }

// Alias template of non-class types.

template <class T, class U> struct same;
template <class T> struct same<T,T> {};

template <class T> using Ptr = T*;
template <template <class> class T> struct A {
  template <class U> using X = T<U>;
};
same<A<Ptr>::X<int>,int*> s;