dmd/compiler/test/fail_compilation/bitfields2.c
2022-07-09 18:53:07 +02:00

18 lines
462 B
C

/* TEST_OUTPUT:
---
fail_compilation/bitfields2.c(103): Error: bit-field type `float` is not an integer type
fail_compilation/bitfields2.c(104): Error: bit-field width `3.0` is not an integer constant
fail_compilation/bitfields2.c(105): Error: bit-field `c` has zero width
fail_compilation/bitfields2.c(106): Error: width `60` of bit-field `d` does not fit in type `int`
---
*/
#line 100
struct S
{
float a:3;
int b:3.0;
int c:0;
int d:60;
};