URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.