MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail20448.d
blob916ee8bbc077b1139d042f901a0ef70c04dfd44f
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail20448.d(16): Error: returning `p.x` escapes a reference to parameter `p`
5 fail_compilation/fail20448.d(22): Error: template instance `fail20448.member!"x"` error instantiating
6 ---
7 */
9 struct S
11 int x, y;
14 ref int member(string mem)(S p)
16 return p.x;
19 void main()
21 S p;
22 p.member!"x" = 2;