URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
void abort ();
|
void abort ();
|
void exit (int);
|
void exit (int);
|
|
|
void test(int x, int y)
|
void test(int x, int y)
|
{
|
{
|
if (x == y)
|
if (x == y)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
void foo(int x, int y)
|
void foo(int x, int y)
|
{
|
{
|
if (x == y)
|
if (x == y)
|
goto a;
|
goto a;
|
else
|
else
|
{
|
{
|
a:;
|
a:;
|
if (x == y)
|
if (x == y)
|
goto b;
|
goto b;
|
else
|
else
|
{
|
{
|
b:;
|
b:;
|
if (x != y)
|
if (x != y)
|
test (x, y);
|
test (x, y);
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
foo (0, 0);
|
foo (0, 0);
|
|
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.