d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail121.d
blob110547be7cae77e7f96f2ebe79337e9abf500d44
1 // PERMUTE_ARGS: -d -dw
2 // segfault on DMD0.150, never failed if use typeid() instead.
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail121.d(24): Error: no property `typeinfo` for `list[1]` of type `fail121.myobject`
7 fail_compilation/fail121.d(12): struct `myobject` defined here
8 fail_compilation/fail121.d(24): Error: no property `typeinfo` for `i` of type `int`
9 ---
12 struct myobject
14 TypeInfo objecttype;
15 void* offset;
18 myobject[] list;
20 void foo()
22 int i;
24 list[1].typeinfo = i.typeinfo;