]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail220.d
d: Synchronize testsuite with upstream dmd
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail220.d
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: unrecognized declaration
9 ---
10 */
11 template types (T) {
12 static if (is (T V : V[K], K == class)) {
13 static assert (false, "assoc");
14 }
15 static const int types = 4;
16 }
17
18 int i = types!(int);