URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// Contributed by Dodji Seketeli
|
// Contributed by Dodji Seketeli
|
// Origin: PR c++/39637
|
// Origin: PR c++/39637
|
// { dg-options "-std=gnu++0x" }
|
// { dg-options "-std=gnu++0x" }
|
// { dg-do "compile" }
|
// { dg-do "compile" }
|
|
|
template
|
template
|
void
|
void
|
f(Types...)
|
f(Types...)
|
{
|
{
|
enum {e = sizeof(Types)}; // { dg-error "parameter packs not expanded with '...'" }
|
enum {e = sizeof(Types)}; // { dg-error "parameter packs not expanded with '...'" }
|
enum {e1 = sizeof...(Types)};
|
enum {e1 = sizeof...(Types)};
|
}
|
}
|
|
|
int
|
int
|
main()
|
main()
|
{
|
{
|
f(0);
|
f(0);
|
}
|
}
|
|
|
// { dg-message "note" "Types" { target *-*-* } 10 }
|
// { dg-message "note" "Types" { target *-*-* } 10 }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.