MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag15974.d
blob03f63f4c21a542213261345ed36d1e936100e7d3
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag15974.d(21): Error: variable `f` cannot be read at compile time
5 fail_compilation/diag15974.d(21): called from here: `format("%s", f)`
6 fail_compilation/diag15974.d(26): Error: variable `f` cannot be read at compile time
7 fail_compilation/diag15974.d(26): called from here: `format("%s", f)`
8 ---
9 */
11 void test15974()
13 string format(Args...)(string fmt, Args args)
15 return "";
18 string f = "vkCreateSampler";
20 // CompileStatement
21 mixin(format("%s", f));
23 struct S
25 // CompileDeclaration
26 mixin(format("%s", f));