]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/failoffset.d
d: Merge upstream dmd d579c467c1, phobos 88aa69b14.
[gcc.git] / gcc / testsuite / gdc.test / fail_compilation / failoffset.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
c8dfa79c 4fail_compilation/failoffset.d(12): Error: no property `offset` for `b` of type `int`
b4c522fa
IB
5fail_compilation/failoffset.d(12): while evaluating: `static assert(b.offset == 4)`
6---
7*/
8
9void main()
10{
11 struct S { int a, b; }
12 static assert(S.b.offset == 4);
13}
This page took 2.92611 seconds and 5 git commands to generate.