aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/20031218-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/20031218-3.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/20031218-3.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/20031218-3.c b/gcc-4.9/gcc/testsuite/gcc.dg/20031218-3.c
new file mode 100644
index 000000000..0bae456b8
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/20031218-3.c
@@ -0,0 +1,14 @@
+/* Orgin: Chris Demetriou <cgd@broadcom.com>
+ 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" } */
+
+extern __SIZE_TYPE__ strlen (const char *);
+
+int x (char *s)
+{
+ int y () { return (strlen (s)); }
+ return y (s);
+}