MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test15368.d
blobab12e86602c15b7c2c5007ed4205ac2943c40af1
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/test15368.d(13): Error: cannot declare `auto` loop variable, omit `auto` to still get type inference
5 ---
6 */
8 // Issue 15368 - Improve error message for "auto" keyword inside "foreach"
9 // https://issues.dlang.org/show_bug.cgi?id=15368
11 void main()
13 foreach (auto e; foo) { }