]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice14146.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice14146.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice14146.d(15): Error: constructor ice14146.Array.this default constructor for structs only allowed with @disable, no body, and no parameters
5 ---
6 */
7
8 struct RangeT(A)
9 {
10 A[1] XXXouter;
11 }
12
13 struct Array
14 {
15 this()
16 {
17 }
18
19 alias Range = RangeT!Array;
20
21 bool opEquals(Array)
22 {
23 }
24 }