d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail278.d
blob39b4e4e5c2690c5ed8241daaa413122c177303d9
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail278.d(11): Error: template instance `NONEXISTENT!()` template `NONEXISTENT` is not defined
5 fail_compilation/fail278.d(12): Error: template instance `fail278.F!()` error instantiating
6 fail_compilation/fail278.d(13): instantiated from here: `Bar!(Foo)`
7 ---
8 */
10 template Id(xs...) { const Id = xs[0]; }
11 template Foo() { mixin Id!(NONEXISTENT!()); }
12 template Bar(alias F) { const int Bar = F!(); }
13 alias Bar!(Foo) x;