d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / issue11070.d
blob07d69ee87ab5f6230ba287cef640ff2e813ebd3b
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/issue11070.d(16): Error: undefined identifier `x`
5 ---
6 */
8 int get() { return 1; }
10 void test() {
11 import std.stdio : writeln;
12 switch (auto x = get()) {
13 default:
14 auto z = x;
16 x = 1;