MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test22680.d
blob85e653e91eafceb67d20d1c880f236bb1f6ebc7d
1 /* REQUIRED_ARGS: -preview=dip1000
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test22680.d(104): Error: scope variable `this` assigned to global variable `c`
5 ---
6 */
8 // https://issues.dlang.org/show_bug.cgi?id=22680
10 #line 100
12 C c;
13 class C {
14 ~this() @safe {
15 c = this;