gcc/testsuite/gcc.dg/torture/stackalign/nested-6.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-require-effective-target trampolines } */ |
| 3 | |
| 4 | typedef __SIZE_TYPE__ size_t; |
| 5 | extern void abort (void); |
| 6 | extern void exit (int); |
| 7 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); |
| 8 | |
| 9 | int main () |
| 10 | { |
| 11 | __label__ nonlocal; |
| 12 | int compare (const void *a, const void *b) |
| 13 | { |
| 14 | goto nonlocal; |
| 15 | } |
| 16 | |
| 17 | char array[3]; |
| 18 | qsort (array, 3, 1, compare); |
| 19 | abort (); |
| 20 | |
| 21 | nonlocal: |
| 22 | exit (0); |
| 23 | } |