| 1 |
// Bugzilla 11149 - Runtime.args no longer available in static constructors |
| 2 |
import core.runtime; |
| 3 |
|
| 4 |
shared static this() |
| 5 |
{ |
| 6 |
assert(Runtime.cArgs.argc > 0); |
| 7 |
assert(Runtime.cArgs.argv !is null); |
| 8 |
assert(Runtime.args.length > 0); |
| 9 |
} |
| 10 |
|
| 11 |
void main() |
| 12 |
{ |
| 13 |
} |