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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [ref3.C] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do run  }
// { dg-do run  }
// Origin: Mark Mitchell 
// Origin: Mark Mitchell 
struct B1
struct B1
{
{
  int i;
  int i;
};
};
struct B2
struct B2
{
{
  int j;
  int j;
};
};
struct D: public B1, B2
struct D: public B1, B2
{
{
};
};
bool f (B2& b)
bool f (B2& b)
{
{
  return b.j == 7;
  return b.j == 7;
}
}
int main ()
int main ()
{
{
  D d;
  D d;
  d.i = 2;
  d.i = 2;
  d.j = 7;
  d.j = 7;
  if (!f (d))
  if (!f (d))
    return 1;
    return 1;
}
}
 
 

powered by: WebSVN 2.1.0

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