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++.old-deja/] [g++.benjamin/] [13478.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// 981203 bkoz
// 981203 bkoz
// g++/13478
// g++/13478
class A {};
class A {};
class AData {};
class AData {};
typedef void (A::* hand) (void);
typedef void (A::* hand) (void);
struct hand_table {
struct hand_table {
  const int data1;
  const int data1;
  const hand data2;
  const hand data2;
};
};
class Agent : public A {
class Agent : public A {
public:
public:
  enum { first = 1, last };
  enum { first = 1, last };
protected:
protected:
  static const hand_table table_1[];
  static const hand_table table_1[];
  static const AData      table_2;
  static const AData      table_2;
private:
private:
  void foo (void);
  void foo (void);
};
};
const hand_table Agent::table_1[] =
const hand_table Agent::table_1[] =
{
{
   {0,     &Agent::table_2},
   {0,     &Agent::table_2},
   {first, &Agent::foo},
   {first, &Agent::foo},
   {last,  &(hand)Agent::foo} // { dg-error "" } no match
   {last,  &(hand)Agent::foo} // { dg-error "" } no match
};
};
 
 

powered by: WebSVN 2.1.0

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