================
@@ -75,6 +75,11 @@ namespace shifts {
                           // ref-cxx17-warning {{shift count >= width of type}}
     (void)((long)c << __CHAR_BIT__);
 
+    c = 1 << (int)INT_MIN; // expected-warning {{shift count is negative}} \
+                           // cxx17-warning {{shift count is negative}} \
+                           // ref-warning {{shift count is negative}} \
+                           // ref-cxx17-warning {{shift count is negative}}
+
----------------
hax0kartik wrote:

Fixed

https://github.com/llvm/llvm-project/pull/176390
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to