MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21198.d
blob04c3bcff7d3c70c4fff666b38995486730416717
1 // https://issues.dlang.org/show_bug.cgi?id=21198
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/test21198.d(23): Error: generating an `inout` copy constructor for `struct test21198.U` failed, therefore instances of it are uncopyable
7 ---
8 */
10 struct S
12 this(ref inout(S) other) inout {}
15 union U
17 S s;
20 void fun()
22 U original;
23 U copy = original;