annotate tests/mini/bug54.d @ 1013:8c73ff5f69e0
Use llvm::CallSite instead of custom CallOrInvoke class.
author |
Frits van Bommel <fvbommel wxs.nl> |
date |
Sat, 28 Feb 2009 22:16:52 +0100 |
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 }
|