MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test20610.d
blob9bdeb20cf005ab84c45dc2165c191afc62535d20
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/test20610.d(20): Error: cannot modify `const` expression `field`
4 ---
5 */
7 // https://issues.dlang.org/show_bug.cgi?id=20610
9 struct S
11 int what;
14 void main()
16 S record;
18 foreach (const ref field; record.tupleof)
20 field = 10;