]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/runnable/test8544.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / runnable / test8544.d
1 // EXECUTE_ARGS: foo bar doo
2 // PERMUTE_ARGS:
3 import std.stdio;
4 import std.conv;
5 import core.runtime;
6
7 void main(string[] args)
8 {
9 string[] dArgs = Runtime.args;
10 CArgs cArgs = Runtime.cArgs;
11
12 assert(dArgs.length && cArgs.argc); // ensure we've passed some args
13 assert(dArgs.length == cArgs.argc);
14
15 assert(dArgs[1] == to!string(cArgs.argv[1]));
16 assert(args[1] == to!string(cArgs.argv[1]));
17 }