mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
13 lines
231 B
D
13 lines
231 B
D
// EXTRA_FILES: imports/imp22749.c
|
|
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail22749.d(12): Error: cannot take address of bit-field `field`
|
|
---
|
|
*/
|
|
import imports.imp22749;
|
|
|
|
void test22749()
|
|
{
|
|
S22749 s;
|
|
void* ptr = &s.field;
|
|
}
|