mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
13 lines
283 B
D
13 lines
283 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/failoffset.d(12): Error: no property `offset` for `b` of type `int`
|
|
fail_compilation/failoffset.d(12): while evaluating: `static assert(b.offset == 4)`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
struct S { int a, b; }
|
|
static assert(S.b.offset == 4);
|
|
}
|