URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// { dg-options "-std=c++0x" }
|
// { dg-options "-std=c++0x" }
|
template class Comp, typename... T> void f( T... Value)
|
template class Comp, typename... T> void f( T... Value)
|
{
|
{
|
static_assert( Comp::value > 0, "" ); // { dg-error "parameter packs|T" }
|
static_assert( Comp::value > 0, "" ); // { dg-error "parameter packs|T" }
|
}
|
}
|
|
|
template class Comp, typename... T> void g( T... Value)
|
template class Comp, typename... T> void g( T... Value)
|
{
|
{
|
static_assert( Comp::value > 0, "" );
|
static_assert( Comp::value > 0, "" );
|
}
|
}
|
|
|
template
|
template
|
struct Foo
|
struct Foo
|
{
|
{
|
static const int value=1;
|
static const int value=1;
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
f( 2 );
|
f( 2 );
|
g( 2 );
|
g( 2 );
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.