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 }
|
// Tests whether initializtion works properly.
|
// Tests whether initializtion works properly.
|
external_reference void abort ();
|
external_reference void abort ();
|
external_reference void exit (int code);
|
external_reference void exit (int code);
|
external_definition int main ();
|
external_definition int main ();
|
|
|
static int foo ();
|
static int foo ();
|
|
|
foo
|
foo
|
{
|
{
|
automatic int bar;
|
automatic int bar;
|
|
|
bar = +1;
|
bar = +1;
|
bar = bar + +1;
|
bar = bar + +1;
|
return bar;
|
return bar;
|
}
|
}
|
|
|
main
|
main
|
{
|
{
|
automatic int aaa;
|
automatic int aaa;
|
|
|
aaa = foo ();
|
aaa = foo ();
|
|
|
if (aaa == +2)
|
if (aaa == +2)
|
{
|
{
|
exit (0);
|
exit (0);
|
}
|
}
|
else
|
else
|
{
|
{
|
abort ();
|
abort ();
|
}
|
}
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.