MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail13424.d
blobdcec523a0133588373f646fee0d51045a0fb85d6
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail13424.d(12): Error: delegate `fail13424.S.__lambda2` cannot be struct members
5 fail_compilation/fail13424.d(17): Error: delegate `fail13424.U.__lambda2` cannot be union members
6 fail_compilation/fail13424.d(22): Error: delegate `fail13424.C.__lambda2` cannot be class members
7 ---
8 */
10 struct S
12 void delegate(dchar) onChar = (dchar) {};
15 union U
17 void delegate(dchar) onChar = (dchar) {};
20 class C
22 void delegate(dchar) onChar = (dchar) {};