MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail111.d
blobb5d16691cb876d661cb6172943e01d7ea4b9c5d4
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail111.d(12): Error: cannot have array of `int(int)`
5 ---
6 */
8 // https://issues.dlang.org/show_bug.cgi?id=289
9 // Compiler allows (and crashes on) dynamic arrays of typedefs of "immediate"-function types
10 alias int ft(int);
12 ft[] x; // is allowed
14 void test()
16 x.length = 2; // crashes DMD