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

19 lines
227 B
D

/* REQUIRED_ARGS: -preview=bitfields
* TEST_OUTPUT:
---
fail_compilation/biterrors4.d(109): Error: cannot take address of bit-field `a`
---
*/
#line 100
struct S
{
int a:3;
}
void test()
{
S s;
int* p = &s.a;
}