MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail12932.d
blobfe68fea01ca5b638090b21295a1754b40912c164
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail12932.d(11): Error: array literal in `@nogc` function `fail12932.foo` may cause a GC allocation
5 fail_compilation/fail12932.d(15): Error: array literal in `@nogc` function `fail12932.foo` may cause a GC allocation
6 ---
7 */
9 int* foo() @nogc
11 foreach (ref e; [1,2,3])
15 foreach (ref e; [1,2,3])
17 return &e;