Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/biterrors2.d

raw
1 /* REQUIRED_ARGS: -preview=bitfields
2 * TEST_OUTPUT:
3 ---
4 fail_compilation/biterrors2.d(100): Error: variable `biterrors2.a` - bit-field must be member of struct, union, or class
5 fail_compilation/biterrors2.d(104): Error: bit-field `b` has zero width
6 fail_compilation/biterrors2.d(105): Error: bit-field type `float` is not an integer type
7 ---
8 */
9
10 #line 100
11 int a : 2;
12
13 struct S
14 {
15 int b:0;
16 float c:3;
17 }