MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail21928b.d
blob3ce93e0a097b88547223210843eae9312f6b379f
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail21928b.d(18): Error: array literal in `@nogc` function `D main` may cause a GC allocation
5 ---
6 */
8 @nogc:
11 struct Shape
13 immutable size_t[] dims = [];
16 void main()
18 auto s = Shape(Shape.init.dims ~ 2);