]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/test15925.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test15925.d
1 /*
2 EXTRA_FILES: imports/imp15925.d
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test15925.d(18): Error: undefined identifier `X`
6 fail_compilation/test15925.d(18): while evaluating: `static assert(X == 1)`
7 ---
8 */
9
10 mixin template Import()
11 {
12 import imports.imp15925;
13 }
14
15 class Foo
16 {
17 mixin Import!();
18 static assert(X == 1);
19 }