Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag11425.d(14): Error: variable `x` is shadowing variable `diag11425.main.x`
5 fail_compilation/diag11425.d(11): declared here
6 ---
7 */
8
9 void main()
10 {
11 int x;
12
13 {
14 int x = 1;
15 }
16 }