const4.C: New testcase.
authorRichard Biener <rguenther@suse.de>
Thu, 18 Jun 2015 14:52:57 +0000 (14:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 18 Jun 2015 14:52:57 +0000 (14:52 +0000)
2015-06-18  Richard Biener  <rguenther@suse.de>

* g++.dg/other/const4.C: New testcase.

From-SVN: r224618

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

index b6d91e141bd0984cfa868a0a88b104e2a358746e..66014bd10bd178338aa5bbecd0be5a479a7ad04c 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-18  Richard Biener  <rguenther@suse.de>
+
+       * g++.dg/other/const4.C: New testcase.
+
 2015-06-18  Michael Matz  <matz@suse.de>
 
        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 (file)
index 0000000..6e30d9e
--- /dev/null
@@ -0,0 +1,10 @@
+// { dg-do compile }
+
+int lValue;
+int main()
+{
+  switch (lValue)
+    {
+    case -(int)((2U << (8 * sizeof(int) - 2)) - 1) - 1:;
+    }
+}