From: Jakub Jelinek Date: Tue, 10 Oct 2017 20:08:36 +0000 (+0200) Subject: re PR c++/68252 (left operand of shift expression, while we shift > 0 integer) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7094f0d341e022b33379f6818f95373a2030248c;p=gcc.git re PR c++/68252 (left operand of shift expression, while we shift > 0 integer) 2017-10-10 Jakub Jelinek PR c++/68252 * g++.dg/other/pr68252.C: New test. From-SVN: r253610 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57d38e0196f..db8482ce807 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2017-10-10 Jakub Jelinek + PR c++/68252 + * g++.dg/other/pr68252.C: New test. + PR target/79565 PR target/82483 * gcc.target/i386/pr82483-1.c: New test. diff --git a/gcc/testsuite/g++.dg/other/pr68252.C b/gcc/testsuite/g++.dg/other/pr68252.C new file mode 100644 index 00000000000..5460d819780 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/pr68252.C @@ -0,0 +1,5 @@ +// PR c++/68252 + +struct Test { + static const int foo = (1 << sizeof (int)) * -3; +};