MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13459.d
blobd34fc60db6a49f71b0aeb07d5039bb22d9c125ea
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13459.d(12): Error: undefined identifier `B`
5 fail_compilation/ice13459.d(18): Error: none of the overloads of `opSlice` are callable using argument types `(int, int)`
6 fail_compilation/ice13459.d(11): Candidate is: `ice13459.A.opSlice()`
7 ---
8 */
9 struct A
11 auto opSlice() const {}
12 auto opSlice() { return B; }
15 void main()
17 auto df = A();
18 foreach (fi; df[0..0]) {}