]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 | 4 | fail_compilation/failoffset.d(12): Error: no property `offset` for type `int` |
b4c522fa IB |
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 | } |