builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-left-shift-3.c
blob59d0f24e39d4044a0c433061e8fb82485777e8f2
1 /* { dg-do compile } */
2 /* { dg-options "-std=iso9899:1999 -pedantic-errors -Wno-shift-overflow" } */
4 #define INTM1 (sizeof (int) * __CHAR_BIT__ - 1)
6 enum { A = 1 << INTM1 }; /* { dg-error "constant expression" } */
7 int k = 1 << INTM1; /* { dg-error "constant expression" } */
9 void
10 fn (int i)
12 switch (i)
13 case 1 << INTM1: break; /* { dg-error "constant expression" } */