Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / nestfunc-6.c
blobfad729aaba3b6e02a9a9edfad1338ab6c2fb1cf2
1 /* { dg-require-effective-target trampolines } */
3 /* Test that the GP gets properly restored, either by the nonlocal
4 receiver or the nested function. */
6 typedef __SIZE_TYPE__ size_t;
7 extern void abort (void);
8 extern void exit (int);
9 extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
11 int main ()
13 __label__ nonlocal;
14 int compare (const void *a, const void *b)
16 goto nonlocal;
19 char array[3];
20 qsort (array, 3, 1, compare);
21 abort ();
23 nonlocal:
24 exit (0);