MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag8044.d
bloba8c767ae7a8c3c42aa1da490ca7642877e6db00c
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag8044.d(18): Error: template instance `diag8044.test!(Enum.Bar)` does not match template declaration `test(Enum en)()`
5 with `en = Bar`
6 must satisfy the following constraint:
7 ` 0`
8 ---
9 */
10 enum Enum { Foo, Bar }
11 void test(Enum en)()
12 if(0)
16 void main()
18 test!(Enum.Bar)();