From 7e92772131fbcdc934c6ebf5cce8c8e3053554a7 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 18 Jun 2015 14:52:57 +0000 Subject: [PATCH] const4.C: New testcase. 2015-06-18 Richard Biener * g++.dg/other/const4.C: New testcase. From-SVN: r224618 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/other/const4.C | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/const4.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b6d91e141bd..66014bd10bd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-06-18 Richard Biener + + * g++.dg/other/const4.C: New testcase. + 2015-06-18 Michael Matz PR middle-end/66253 diff --git a/gcc/testsuite/g++.dg/other/const4.C b/gcc/testsuite/g++.dg/other/const4.C new file mode 100644 index 00000000000..6e30d9e906c --- /dev/null +++ b/gcc/testsuite/g++.dg/other/const4.C @@ -0,0 +1,10 @@ +// { dg-do compile } + +int lValue; +int main() +{ + switch (lValue) + { + case -(int)((2U << (8 * sizeof(int) - 2)) - 1) - 1:; + } +} -- 2.30.2