Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/diag8044.d

raw
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)
13 {
14 }
15
16 void main()
17 {
18 test!(Enum.Bar)();
19 }