]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
5fee5ec3 IB |
4 | fail_compilation/diag10984.d(12): Error: `static` function `diag10984.f.n` cannot access variable `x` in frame of function `diag10984.f` |
5 | fail_compilation/diag10984.d(11): `x` declared here | |
b4c522fa IB |
6 | --- |
7 | */ | |
8 | ||
9 | void f() | |
10 | { | |
11 | int x; | |
12 | static void n() { x++; } | |
13 | } | |
14 | ||
15 | void main() | |
16 | { | |
17 | } |