From: jakub Date: Tue, 18 Nov 2014 22:13:16 +0000 (+0000) Subject: PR tree-optimization/61042 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae371dcf05157f821e4542336745f64a7c638cf1;p=thirdparty%2Fgcc.git PR tree-optimization/61042 * gcc.c-torture/compile/pr61042.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@217740 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5e889f7cfcc7..ad651fa7830e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-11-18 Jakub Jelinek + + PR tree-optimization/61042 + * gcc.c-torture/compile/pr61042.c: New test. + 2014-11-18 Maciej W. Rozycki * gcc.dg/atomic/c11-atomic-exec-5.c (dg-timeout-factor): New diff --git a/gcc/testsuite/gcc.c-torture/compile/pr61042.c b/gcc/testsuite/gcc.c-torture/compile/pr61042.c new file mode 100644 index 000000000000..43a4319096a9 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr61042.c @@ -0,0 +1,10 @@ +/* PR tree-optimization/61042 */ + +int a, b, c[1], d, f; + +void +foo () +{ + for (; b; b++) + c[0] = c[f] && (d = a); +}