summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20031218-3.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-18 22:19:11 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-18 22:19:11 +0000
commit453ba59a1a6e6283f7002af7576f417a1641c0e3 (patch)
tree02faca51cc6fe0818fb42b862ea3968e85ebdbb2 /gcc/testsuite/gcc.dg/20031218-3.c
parentad85fb32ad6eca009e3f1228f99985491d95159c (diff)
downloadgcc-453ba59a1a6e6283f7002af7576f417a1641c0e3.tar.gz
PR debug/12923
* gcc.dg/20031218-1.c: New test. PR debug/12389 * gcc.dg/20031218-2.c: New test. * gcc.dg/20031218-3.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74807 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/20031218-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/20031218-3.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20031218-3.c b/gcc/testsuite/gcc.dg/20031218-3.c
new file mode 100644
index 00000000000..58878b61f06
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20031218-3.c
@@ -0,0 +1,12 @@
+/* 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" } */
+
+int x (char *s)
+{
+ int y () { return (strlen (s)); }
+ return y (s);
+}