diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/20031218-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20031218-2.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20031218-2.c b/gcc/testsuite/gcc.dg/20031218-2.c new file mode 100644 index 000000000..497c963d2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20031218-2.c @@ -0,0 +1,12 @@ +/* Orgin: Richard Sandiford <rsandifo@gcc.gnu.org> + PR debug/12923 ICE in gen_subprogram_die with -O2 -g + The problem was that this just to ICE with -O2 -g. */ + +/* { dg-do compile } */ +/* { dg-options "-O2 -g" } */ + +int f1 (int y) +{ + int f2() { return y; } + return f2(); +} |