Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / case-const-2.c
blob9c119b04df536950411a022d6f0f3c8687bc92ee
1 /* Test for case labels not integer constant expressions but folding
2 to integer constants (used in Linux kernel, PR 39613). */
3 /* { dg-do compile } */
4 /* { dg-options "-pedantic" } */
6 extern int i;
7 void
8 f (int c)
10 switch (c)
12 case (1 ? 1 : i): /* { dg-warning "case label is not an integer constant expression" } */