URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Test that the GP gets properly restored, either by the nonlocal
|
/* Test that the GP gets properly restored, either by the nonlocal
|
receiver or the nested function. */
|
receiver or the nested function. */
|
|
|
#ifndef NO_TRAMPOLINES
|
#ifndef NO_TRAMPOLINES
|
|
|
typedef __SIZE_TYPE__ size_t;
|
typedef __SIZE_TYPE__ size_t;
|
extern void abort (void);
|
extern void abort (void);
|
extern void exit (int);
|
extern void exit (int);
|
extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
|
extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
|
|
|
int main ()
|
int main ()
|
{
|
{
|
__label__ nonlocal;
|
__label__ nonlocal;
|
int compare (const void *a, const void *b)
|
int compare (const void *a, const void *b)
|
{
|
{
|
goto nonlocal;
|
goto nonlocal;
|
}
|
}
|
|
|
char array[3];
|
char array[3];
|
qsort (array, 3, 1, compare);
|
qsort (array, 3, 1, compare);
|
abort ();
|
abort ();
|
|
|
nonlocal:
|
nonlocal:
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
#else
|
#else
|
int main() { return 0; }
|
int main() { return 0; }
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.