| 1 |
// REQUIRED_ARGS: -debug -O -release |
| 2 |
// https://issues.dlang.org/show_bug.cgi?id=22277 |
| 3 |
|
| 4 |
bool secret = false; |
| 5 |
|
| 6 |
void free(immutable void* x) pure nothrow |
| 7 |
{ |
| 8 |
debug secret = true; |
| 9 |
} |
| 10 |
|
| 11 |
void main() |
| 12 |
{ |
| 13 |
free(null); |
| 14 |
if (!secret) |
| 15 |
assert(0); |
| 16 |
} |