MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice9759.d
blob6608b58fc0b6526d4f49682c92d9d92f731994f5
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice9759.d(25): Error: mutable method `ice9759.Json.opAssign` is not callable using a `const` object
5 fail_compilation/ice9759.d(17): Consider adding `const` or `inout` here
6 ---
7 */
9 struct Json
11 union
13 Json[] m_array;
14 Json[string] m_object;
17 void opAssign(Json v)
22 void bug()
24 const(Json) r;
25 r = r.init;