MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail12908.d
blob67ea6cefb22747862de49b0e9253652c62a1e9f8
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail12908.d(14): Error: `pure` delegate `fail12908.main.__foreachbody1` cannot call impure function `fail12908.g`
5 ---
6 */
8 void g() {}
10 void main() pure
12 foreach (k, v; ["": ""])
14 g();