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" } */
5 
6 extern unsigned int u;
7 
8 void
b(int c)9 b (int c)
10 {
11   switch (c)
12     {
13     case (int) (2  | ((4 < 8) ? 8 : u)): /* { dg-warning "case label is not an integer constant expression" } */
14       ;
15     }
16 }
17 
18