Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
biterrors4.d
blob: 0f2ca2d0d3fccffc9c330b8b958abcbc3bb0b6c0 [
file
] [
log
] [
blame
]
/* 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
;
}