MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fix22108.d
blob149bebae0ea629452f956bba6a64597233df7f92
1 /* REQUIRED_ARGS: -preview=dip1000
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fix22108.d(12): Error: scope variable `p` may not be returned
5 ---
6 */
8 // https://issues.dlang.org/show_bug.cgi?id=22108
10 @safe ref int test(ref scope return int* p)
12 return *p;