OSDN Git Service

PR c++/45114 - Support C++11 alias-declaration
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-6.C
1 // { dg-options "-std=c++0x" }
2
3 // Alias template of non-class types.
4
5 template <class T, class U> struct same;
6 template <class T> struct same<T,T> {};
7
8 template <class T> using Ptr = T*;
9 template <template <class> class T> struct A {
10   template <class U> using X = T<U>;
11 };
12 same<A<Ptr>::X<int>,int*> s;