URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do run }
|
// { dg-do run }
|
template< int i > struct T :
|
template< int i > struct T :
|
public T< i-1 >
|
public T< i-1 >
|
{
|
{
|
};
|
};
|
|
|
template<> struct T< 0 >
|
template<> struct T< 0 >
|
{
|
{
|
};
|
};
|
|
|
template< class F > struct T1 :
|
template< class F > struct T1 :
|
public T< F::dim >
|
public T< F::dim >
|
{
|
{
|
};
|
};
|
|
|
template< int i > struct S
|
template< int i > struct S
|
{
|
{
|
enum { dim = i } ;
|
enum { dim = i } ;
|
};
|
};
|
|
|
int main()
|
int main()
|
{
|
{
|
T1< S< 4 > > t ;
|
T1< S< 4 > > t ;
|
return( 0 ) ;
|
return( 0 ) ;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.