URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [anon10.C] - Rev 301
Compare with Previous | Blame | View Log
// http://bugzilla.redhat.com/411871
// { dg-do compile }
extern "C" int printf (const char *, ...);
struct E
{
template <typename T> E (const volatile T&);
template <typename T> E (T&);
char x[64];
};
template<typename T> struct D
{
static E foo (E, ...);
static int foo (T, int);
};
template<typename T, typename U> struct C
{
static T ca;
static const int value = sizeof (D<U>::foo (ca, 0)) == sizeof (int);
};
struct A
{
int a;
};
namespace
{
struct B
{
int a;
};
}
int bar (void)
{
C<A, int> a;
C<B, int> b;
return a.value + b.value;
}