MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail18985.d
blob830a6792ad2dda522e0d54c05c5ffd6bb7a02b30
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail18985.d(16): Error: `foo` is not a scalar, it is a `object.Object`
5 fail_compilation/fail18985.d(17): Error: `bar` is not a scalar, it is a `shared(Object)`
6 ---
7 */
9 // https://issues.dlang.org/show_bug.cgi?id=18985
11 Object foo;
12 shared Object bar;
14 void main()
16 foo += 1;
17 bar += 1;