From 7094f0d341e022b33379f6818f95373a2030248c Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 10 Oct 2017 22:08:36 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/g++.dg/other/pr68252.C | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/pr68252.C 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; +}; -- 2.30.2