URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// http://bugzilla.redhat.com/411871
|
// http://bugzilla.redhat.com/411871
|
// { dg-do compile }
|
// { dg-do compile }
|
|
|
extern "C" int printf (const char *, ...);
|
extern "C" int printf (const char *, ...);
|
|
|
struct E
|
struct E
|
{
|
{
|
template E (const volatile T&);
|
template E (const volatile T&);
|
template E (T&);
|
template E (T&);
|
char x[64];
|
char x[64];
|
};
|
};
|
|
|
template struct D
|
template struct D
|
{
|
{
|
static E foo (E, ...);
|
static E foo (E, ...);
|
static int foo (T, int);
|
static int foo (T, int);
|
};
|
};
|
|
|
template struct C
|
template struct C
|
{
|
{
|
static T ca;
|
static T ca;
|
static const int value = sizeof (D::foo (ca, 0)) == sizeof (int);
|
static const int value = sizeof (D::foo (ca, 0)) == sizeof (int);
|
};
|
};
|
|
|
struct A
|
struct A
|
{
|
{
|
int a;
|
int a;
|
};
|
};
|
|
|
namespace
|
namespace
|
{
|
{
|
struct B
|
struct B
|
{
|
{
|
int a;
|
int a;
|
};
|
};
|
}
|
}
|
|
|
int bar (void)
|
int bar (void)
|
{
|
{
|
C a;
|
C a;
|
C b;
|
C b;
|
|
|
return a.value + b.value;
|
return a.value + b.value;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.