MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail11503b.d
blobebfbbfdc4472158bf9f368d8bb6c2e801a4e5bfe
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail11503b.d(17): Error: cannot implicitly convert expression `makes()` of type `immutable(int[])` to `int[]`
5 ---
6 */
7 immutable int[] x = [1, 2, 3];
9 auto makes() pure
11 return x;
14 int main()
16 auto a = x;
17 int[] b = makes();
18 return b[1];