MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail220.d
blobd3905d7fece623220097171bbfef5eab08a507bb
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail220.d(12): Error: identifier expected for template value parameter
5 fail_compilation/fail220.d(12): Error: found `==` when expecting `)`
6 fail_compilation/fail220.d(12): Error: found `class` when expecting `)`
7 fail_compilation/fail220.d(12): Error: declaration expected, not `)`
8 fail_compilation/fail220.d(16): Error: unmatched closing brace
9 ---
11 template types (T) {
12 static if (is (T V : V[K], K == class)) {
13 static assert (false, "assoc");
15 static const int types = 4;
18 int i = types!(int);