Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail285.d(19): Error: with symbol `fail285.S.x` is shadowing local symbol `fail285.main.x`
5 ---
6 */
7
8 struct S
9 {
10 int x;
11 }
12
13 void main()
14 {
15 int x;
16 S s;
17 with (s)
18 {
19 x++;
20 }
21 }