☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag11425.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/diag11425.d
code
plain
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
}