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++.brendan/] [crash10.C] - Diff between revs 149 and 154

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

Rev 149 Rev 154
// { dg-do assemble  }
// { dg-do assemble  }
// GROUPS passed old-abort
// GROUPS passed old-abort
class word
class word
{
{
  unsigned char b1, b2;
  unsigned char b1, b2;
public:
public:
  word (unsigned int i = 0) { b1 = i & 0xff; b2 = (i & 0xff00) >> 8; }
  word (unsigned int i = 0) { b1 = i & 0xff; b2 = (i & 0xff00) >> 8; }
  operator unsigned int () { return (b2 <<  8) + b1; }
  operator unsigned int () { return (b2 <<  8) + b1; }
};
};
class just_another
class just_another
{
{
  int foo;
  int foo;
  char bar[23];
  char bar[23];
};
};
int mumble(word w)
int mumble(word w)
{
{
  just_another *jap;
  just_another *jap;
  unsigned bar;
  unsigned bar;
  bar = w;
  bar = w;
  jap = new just_another [w];
  jap = new just_another [w];
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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