gcc/testsuite/gcc.dg/20031218-3.c
raw| 1 | /* Orgin: Chris Demetriou <[email protected]> |
| 2 | PR debug/12923 ICE in gen_subprogram_die with -O2 -g |
| 3 | The problem was that this just to ICE with -O2 -g. */ |
| 4 | |
| 5 | /* { dg-do compile } */ |
| 6 | /* { dg-options "-std=gnu17 -O2 -g" } */ |
| 7 | |
| 8 | extern __SIZE_TYPE__ strlen (const char *); |
| 9 | |
| 10 | int x (char *s) |
| 11 | { |
| 12 | int y () { return (strlen (s)); } |
| 13 | return y (s); |
| 14 | } |