mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
227 B
D
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;
|
|
}
|