From: rguenth Date: Thu, 7 Oct 2010 15:00:18 +0000 (+0000) Subject: 2010-10-07 Richard Guenther X-Git-Tag: upstream/4.9.2~26028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a0217ad92b8f71f6c5d452a76513a767f189669;p=platform%2Fupstream%2Flinaro-gcc.git 2010-10-07 Richard Guenther PR tree-optimization/45732 * gcc.dg/torture/pr45732.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165120 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2f1f761..a38c250 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-10-07 Richard Guenther + + PR tree-optimization/45732 + * gcc.dg/torture/pr45732.c: New testcase. + 2010-10-07 Iain Sandoe * objc.dg/foreach-1.m: Adjust for -fnext-runtime compatibility. diff --git a/gcc/testsuite/gcc.dg/torture/pr45732.c b/gcc/testsuite/gcc.dg/torture/pr45732.c new file mode 100644 index 0000000..04ceaa2 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr45732.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ + +typedef char chars[5]; +const chars bad_chars[] = { "" }; + +int foo () +{ + const chars *c = bad_chars; + return c[0][0]; +}