]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/failoffset.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / failoffset.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/failoffset.d(12): Error: no property 'offset' for 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 }