dmd/compiler/test/fail_compilation/biterrors2.d
Nick Treleaven 6c00f8f5aa
[dsymbolsem] Fix error punctuation (part 4) (#14786)
* [dsymbolsem] Fix error punctuation (part 4)

Also move fail233.d test into diag12312.d.

* 3 pragma(mangle) errors

* Fix line no
2023-01-05 10:36:36 +02:00

17 lines
410 B
D

/* REQUIRED_ARGS: -preview=bitfields
* TEST_OUTPUT:
---
fail_compilation/biterrors2.d(100): Error: variable `biterrors2.a` - bit-field must be member of struct, union, or class
fail_compilation/biterrors2.d(104): Error: bit-field `b` has zero width
fail_compilation/biterrors2.d(105): Error: bit-field type `float` is not an integer type
---
*/
#line 100
int a : 2;
struct S
{
int b:0;
float c:3;
}