aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/typedef5.C
blob: 04b8eac3bcc283c7f08d5e2821db7b08a5f2ef2c (plain)
1
2
3
4
5
6
7
// PR c++/27572
// { dg-do compile }

template<typedef,int>        struct A1; // { dg-error "no type|typedef declaration|default argument" }
template<typedef x,int>      struct A2; // { dg-error "type|typedef declaration|default argument" }
template<typedef x[],int>    struct A3; // { dg-error "no type|typedef declaration|expected" }
template<typedef int x, int> struct A4; // { dg-error "typedef declaration|default argument" }