2 /* { dg-do compile } */
3 /* { dg-options "-Wpedantic -std=c90" } */
9 double b1
:1; /* { dg-error "10:has invalid type" } */
10 int b2
:j
; /* { dg-error "7:width not an integer constant" } */
11 int b3
:f
; /* { dg-error "7:width not an integer constant" } */
12 int b4
:(int) __builtin_log (100); /* { dg-warning "7:width not an integer constant" } */
13 int b5
:-2; /* { dg-error "7:negative width" } */
14 int b6
:0; /* { dg-error "7:zero width" } */
15 long int b7
:32; /* { dg-warning "12:type of bit-field" } */
16 int b8
:sizeof (int) * __CHAR_BIT__
* 2; /* { dg-error "7:width of" } */
17 __extension__
enum E b9
:1; /* { dg-warning "24:is narrower" } */