From: Richard Biener Date: Thu, 18 Jun 2015 14:52:57 +0000 (+0000) Subject: const4.C: New testcase. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e92772131fbcdc934c6ebf5cce8c8e3053554a7;p=gcc.git const4.C: New testcase. 2015-06-18 Richard Biener * g++.dg/other/const4.C: New testcase. From-SVN: r224618 --- 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:; + } +}