URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
|
|
template
|
template
|
struct X
|
struct X
|
{
|
{
|
T1 a;
|
T1 a;
|
|
|
struct Y
|
struct Y
|
{
|
{
|
T2 x;
|
T2 x;
|
Y (T2 _x) { x=_x; }
|
Y (T2 _x) { x=_x; }
|
};
|
};
|
|
|
};
|
};
|
|
|
template
|
template
|
struct X
|
struct X
|
{
|
{
|
T1 a;
|
T1 a;
|
|
|
struct Y
|
struct Y
|
{
|
{
|
int x;
|
int x;
|
Y (int _x) { x=_x; }
|
Y (int _x) { x=_x; }
|
};
|
};
|
|
|
};
|
};
|
|
|
template <>
|
template <>
|
struct X
|
struct X
|
{
|
{
|
int a;
|
int a;
|
|
|
struct Y
|
struct Y
|
{
|
{
|
int x;
|
int x;
|
Y (int _x) { x=_x; }
|
Y (int _x) { x=_x; }
|
};
|
};
|
|
|
};
|
};
|
|
|
void f ()
|
void f ()
|
{
|
{
|
X t1;
|
X t1;
|
X t2;
|
X t2;
|
X t3;
|
X t3;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.