summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/runnable/hello.d
blob: 88adaa4234bfafd089540ac3ba538d3949e12ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PERMUTE_ARGS:

extern(C) int printf(const char*, ...);

int main(char[][] args)
{
    printf("hello world\n");
    printf("args.length = %d\n", args.length);
    for (int i = 0; i < args.length; i++)
        printf("args[%d] = '%.*s'\n", i, args[i].length, args[i].ptr);
    return 0;
}