From: law Date: Mon, 14 Oct 2019 21:14:16 +0000 (+0000) Subject: * gcc.c-torture/compile/pr85401: New test. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59a14de7e3456102942e2264c18bd401c4c4ee05;p=thirdparty%2Fgcc.git * gcc.c-torture/compile/pr85401: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276971 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 08d4a79867d5..494c67f9b19f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2019-10-14 Maya Rashish + + * gcc.c-torture/compile/pr85401: New test. + 2019-10-14 Mihailo Stojanovic * gcc.target/mips/constant-spill.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/pr85401.c b/gcc/testsuite/gcc.c-torture/compile/pr85401.c new file mode 100644 index 000000000000..fa8fa19be591 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr85401.c @@ -0,0 +1,20 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +int h (void); +int i (int); + +struct a b; +struct a +{ + unsigned c:4; +} d () +{ + int e, f = b.c << 2, g = h (); + for (; g;) + ; + if (e == 0) + if (f) + i (f); + return b; +}