1 // PR c++/55095
2 // { dg-do compile { target c++14 } }
3 // { dg-options "-Wshift-overflow=2" }
4 // { dg-require-effective-target int32plus }
5 
6 #define INTM1 (sizeof (int) * __CHAR_BIT__ - 1)
7 #define LLONGM1 (sizeof (long long) * __CHAR_BIT__ - 1)
8 
9 int i1 = 1 << INTM1;
10 unsigned u1 = 1 << INTM1;
11 long long int l1 = 1LL << LLONGM1;
12