gcc/testsuite/gcc.c-torture/compile/pr82337.c
raw| 1 | /* PR82337: SLSR needs to prevent abnormal SSA names from |
| 2 | serving as a basis. */ |
| 3 | /* { dg-require-effective-target nonlocal_goto } */ |
| 4 | |
| 5 | char *a, *b, *c; |
| 6 | |
| 7 | struct d { |
| 8 | short e; |
| 9 | char f[]; |
| 10 | }; |
| 11 | |
| 12 | extern void j (void); |
| 13 | |
| 14 | void |
| 15 | g() { |
| 16 | struct d *h; |
| 17 | char *i; |
| 18 | int d; |
| 19 | do { |
| 20 | i = h->f + d; |
| 21 | 20 ? j() : 0; |
| 22 | i = c; |
| 23 | if (__builtin_setjmp (h)) |
| 24 | b = h->f + d; |
| 25 | d = (int)(*i); |
| 26 | } while (a); |
| 27 | } |