OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [anon10.C] - Diff between revs 301 and 338

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;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.