re PR c++/68252 (left operand of shift expression, while we shift > 0 integer)
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Oct 2017 20:08:36 +0000 (22:08 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Oct 2017 20:08:36 +0000 (22:08 +0200)
2017-10-10  Jakub Jelinek  <jakub@redhat.com>

PR c++/68252
* g++.dg/other/pr68252.C: New test.

From-SVN: r253610

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/pr68252.C [new file with mode: 0644]

index 57d38e0196fea53a5c37735eb5d4a520c4d5560c..db8482ce80785f0d411e279b78e5b69e385e75c7 100644 (file)
@@ -1,5 +1,8 @@
 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
 
+       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 (file)
index 0000000..5460d81
--- /dev/null
@@ -0,0 +1,5 @@
+// PR c++/68252
+
+struct Test {
+  static const int foo = (1 << sizeof (int)) * -3;
+};