MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail3290.d
blob2b6bbac3f19f8cc1773401270fc0c7b2316bf957
1 // https://issues.dlang.org/show_bug.cgi?id=3290
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail3290.d(12): Error: argument type mismatch, `const(int)` to `ref int`
6 ---
7 */
9 void main()
11 const(int)[] array;
12 foreach (ref int i; array) {
13 //i = 42;