OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [template/] [function1.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// PR c++/38647
// PR c++/38647
// { dg-do compile }
// { dg-do compile }
template struct A {};
template struct A {};
const char func[] = "abc";
const char func[] = "abc";
template struct A {};   // { dg-error "cannot appear|is invalid" }
template struct A {};   // { dg-error "cannot appear|is invalid" }
char a1[1];
char a1[1];
A a;
A a;
template struct B {};
template struct B {};
template struct B<__FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid" }
template struct B<__FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid" }
char b1[1];
char b1[1];
B b;
B b;
template struct C {};
template struct C {};
template struct C<__PRETTY_FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid" }
template struct C<__PRETTY_FUNCTION__, N> {};   // { dg-error "cannot appear|is invalid" }
char c1[1];
char c1[1];
C c;
C c;
template struct D {};
template struct D {};
template struct D<__func__, N> {};   // { dg-error "cannot appear|is invalid" }
template struct D<__func__, N> {};   // { dg-error "cannot appear|is invalid" }
char d1[1];
char d1[1];
D d;
D d;
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.