URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.