| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/failoffset.d(12): Error: no property `offset` for `b` of type `int` |
| 5 |
fail_compilation/failoffset.d(12): while evaluating: `static assert(b.offset == 4)` |
| 6 |
--- |
| 7 |
*/ |
| 8 |
|
| 9 |
void main() |
| 10 |
{ |
| 11 |
struct S { int a, b; } |
| 12 |
static assert(S.b.offset == 4); |
| 13 |
} |