xref: /netbsd-src/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.init_fini/runtime_args.d (revision 4b004442778f1201b2161e87fd65ba87aae6601a)
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 }
14