annotate tests/mini/bug54.d @ 1646:a8fc855f156e
Don't remove an old .o with -output-{bc,ll,s}.
author |
Matti Niemenmaa <matti.niemenmaa+hg@iki.fi> |
date |
Tue, 09 Mar 2010 23:21:48 +0200 |
parents |
1bb99290e03a |
children |
|
rev |
line source |
91
|
1 module bug54;
|
|
2
|
|
3 extern(C) size_t strlen(char*);
|
|
4
|
|
5 // creating args for main
|
|
6 void d_main_args(size_t n, char** args, ref char[][] res)
|
|
7 {
|
|
8 assert(res.length == n);
|
|
9 foreach(i,v; args[0..n])
|
|
10 {
|
|
11 res[i] = v[0 .. strlen(v)];
|
|
12 }
|
|
13 }
|
|
14
|
|
15 void main()
|
|
16 {
|
|
17 }
|