MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / b17285.d
blob7b79cf0666fc4fee99c1b1d4e75f2b1ac07d0ed0
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/b17285.d(14): Error: type `ONE` has no value
5 fail_compilation/b17285.d(14): Error: type `TWO` has no value
6 fail_compilation/b17285.d(14): Error: cannot implicitly convert expression `ONE` of type `b17285.ONE` to `int`
7 ---
8 */
10 class ONE {}
11 enum TWO;
13 void foo() {
14 foreach(key; [ONE, TWO, 1]) {}