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

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

Rev 149 Rev 154
// { dg-do run  }
// { dg-do run  }
// { dg-options "-w" }
// { dg-options "-w" }
// Used to crash on the alpha with optimization.
// Used to crash on the alpha with optimization.
extern "C" void abort (void);
extern "C" void abort (void);
struct Fix {
struct Fix {
  unsigned short l;
  unsigned short l;
};
};
static inline void f (int len)
static inline void f (int len)
{
{
  if (len > 65535)
  if (len > 65535)
    abort ();
    abort ();
}
}
struct Fix a = { 33 };
struct Fix a = { 33 };
main()
main()
{
{
  f (a.l);
  f (a.l);
}
}
 
 

powered by: WebSVN 2.1.0

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