MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test17764.d
blobbefcdb19fee9e5c0a89e54f01b3230b8ffed4170
1 /* REQUIRED_ARGS: -preview=dip1000
2 * TEST_OUTPUT:
3 ---
4 fail_compilation/test17764.d(109): Error: scope variable `c` assigned to global variable `global`
5 ---
6 */
8 // https://issues.dlang.org/show_bug.cgi?id=17764
10 #line 100
12 int** global;
14 struct S { int** str; }
16 void f() @safe
18 int* buf;
19 S[1] c = S(&buf);
20 global = c[0].str; /* This should be rejected. */