MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test22541.d
blob6152f44fae93e1e1f3d1f5de567d46a9984271e7
1 /* REQUIRED_ARGS: -preview=dip1000
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test22541.d(104): Error: returning `i` escapes a reference to parameter `i`
5 fail_compilation/test22541.d(102): perhaps annotate the parameter with `return`
6 ---
7 */
9 /* https://issues.dlang.org/show_bug.cgi?id=22541
12 #line 100
14 @safe
15 ref int newe(ref return scope int i) // ref, error
17 return i;