]>
Commit | Line | Data |
---|---|---|
7da827c9 IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
4 | fail_compilation/fail6497.d(12): Error: cannot take address of local `n` in `@safe` function `main` | |
5 | fail_compilation/fail6497.d(12): Error: cannot take address of local `n` in `@safe` function `main` | |
6 | --- | |
7 | */ | |
b4c522fa IB |
8 | |
9 | void main() @safe | |
10 | { | |
11 | int n; | |
12 | auto b = &(0 ? n : n); | |
13 | } |