MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail21206.d
blobb3b42f342962b646e8f3a324020f7b6dc2f7867a
1 // https://issues.dlang.org/show_bug.cgi?id=21206
2 /* TEST_OUTPUT:
3 ---
4 fail_compilation/fail21206.d(10): Error: function `fail21206.Obj.toString` cannot return type `string` because its linkage is `extern(C++)`
5 fail_compilation/fail21206.d(10): slices are specific to D and do not have a counterpart representation in C++
6 ---
7 */
8 extern(C++) struct Obj
10 string toString()
12 return "ret";