Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/typedef5.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/27572 // { dg-do compile } template<typedef,int> struct A1; // { dg-error "10:typedef declaration" } // { dg-error "no type|default argument" "" { target *-*-* } .-1 } template<typedef x,int> struct A2; // { dg-error "10:typedef declaration" } // { dg-error "type|default argument" "" { target *-*-* } .-1 } template<typedef x[],int> struct A3; // { dg-error "typedef declaration|no type|expected" } template<typedef int x, int> struct A4; // { dg-error "10:typedef declaration" } // { dg-error "default argument" "" { target *-*-* } .-1 }