MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail9290.d
blob6b51b2b902a4f5a5ce0c1c42b9703f8ab66335df
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail9290.d(15): Error: slice `s1[]` is not mutable, struct `S` has immutable members
5 fail_compilation/fail9290.d(16): Error: array `s1` is not mutable, struct `S` has immutable members
6 ---
7 */
9 struct S { immutable int i; }
11 void main()
13 S[1] s1 = S(1);
14 S[1] s2 = S(2);
15 s1 = S(3);
16 s1 = s2;