MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail_arrayop3b.d
blob87f29932b521e1f83e9448d7c891df54fdc30f65
1 /*
2 REQUIRED_ARGS: -o-
3 TEST_OUTPUT:
4 ----
5 $p:druntime/import/core/internal/array/operations.d$($n$): Error: static assert: "Binary op `+=` not supported for types `string` and `string`."
6 $p:druntime/import/core/internal/array/operations.d$($n$): instantiated from here: `typeCheck!(true, string, string, "+=")`
7 $p:druntime/import/object.d$($n$): instantiated from here: `arrayOp!(string[], string[], "+=")`
8 fail_compilation/fail_arrayop3b.d(15): instantiated from here: `_arrayOp!(string[], string[], "+=")`
9 ---
11 void test11376()
13 string[] s1;
14 string[] s2;
15 s2[] += s1[];