]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/failoffset.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / failoffset.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
5fee5ec3 4fail_compilation/failoffset.d(12): Error: no property `offset` for 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}