]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/alias-decl-1.C
/cp
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / alias-decl-1.C
CommitLineData
699872ef 1// { dg-do compile { target c++11 } }
370478b1 2
3// These also represent tests for printing alias declarations and
4// their instantiations.
5
6template<class T, class U> struct A0 {};
7template<class T, class U> using AA0 = A0<T, U>;
20aa9b28 8template<class T> struct AA0<int, T> {}; // { dg-error "specialization" }
370478b1 9
10template <class U> using Ptr = U*;
20aa9b28 11template<class U> struct Ptr<U*> {}; // { dg-error "specialization" }
370478b1 12
13struct A {
43bbc1da 14 using A = int; // { dg-error "11:ISO C\\+\\+ forbids nested type .A." }
15// { dg-error "same name as" "" { target c++11 } .-1 }
370478b1 16};