MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail341.d
blob38bb6dcbc61f216549a6560b5edd84b8f0646959
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail341.d(26): Error: struct `fail341.S` is not copyable because field `t` is not copyable
5 fail_compilation/fail341.d(27): Error: function `fail341.foo` cannot be used because it is annotated with `@disable`
6 ---
7 */
9 struct T
11 @disable this(this)
16 struct S
18 T t;
21 @disable void foo() { }
23 void main()
25 S s;
26 auto t = s;
27 foo();