decl.c (grok_ctor_properties): Use DECL_SOURCE_LOCATION.
[official-gcc.git] / gcc / testsuite / c-c++-common / Wshift-count-overflow-1.c
blob47225e4aacb040ae94329d2396e84352dcc8a05a
1 /* { dg-do compile } */
2 /* { dg-options "-Wshift-count-overflow" } */
4 void foo()
6 unsigned i1 = 1U << (sizeof(unsigned) * __CHAR_BIT__); /* { dg-warning "20:left shift count >= width of type" } */
7 unsigned i2 = 1U >> (sizeof(unsigned) * __CHAR_BIT__); /* { dg-warning "20:right shift count >= width of type" } */