tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git] / gcc / testsuite / g++.dg / warn / pr8715.C
blobfccb25aa7e5dba56f32f43b0e5f9120ff9a7aad5
1 /* { dg-do compile } */
2 /* { dg-options "-Wsign-compare" } */
4 int foo()
6   unsigned char b = '1';
8   bool x = ~b; /* { dg-warning "promoted bitwise complement of an unsigned value is always nonzero" } */
10   return 0;