MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21939.d
blobe513dc248c6417fa17d50a53dbec09d2df00ee38
1 // https://issues.dlang.org/show_bug.cgi?id=21939
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test21939.d(11): Error: invalid `foreach` aggregate `Object` of type `Object`
6 fail_compilation/test21939.d(11): `foreach` works with input ranges (implementing `front` and `popFront`), aggregates implementing `opApply`, or the result of an aggregate's `.tupleof` property
7 fail_compilation/test21939.d(11): https://dlang.org/phobos/std_range_primitives.html#isInputRange
8 ---
9 */
11 static foreach (a; Object) {}