Warn pointer to signed integer cast for ilp32
[official-gcc.git] / gcc / testsuite / gcc.dg / pr52283.c
blob070e71aa5904bd35af60b0da03d9a1b244f41eb3
1 /* Test for case labels not integer constant expressions but folding
2 to integer constants (used in Linux kernel). */
3 /* { dg-do compile } */
4 /* { dg-options "-pedantic" } */
6 extern unsigned int u;
8 void
9 b (int c)
11 switch (c)
13 case (int) (2 | ((4 < 8) ? 8 : u)): /* { dg-warning "case label is not an integer constant expression" } */