comparison test/g.d @ 5:3d60e549b0c2 trunk

[svn r9] added a preliminary rebuild profile. llvmdc-posix - very handy :) added readme.txt added test/g.d - tests passing strings to functions fixed test/dgs.d and test/funcptr, now all tests except those related to typeinfo should work.
author lindquist
date Wed, 05 Sep 2007 07:16:31 +0200
parents
children d9d5d59873d8
comparison
equal deleted inserted replaced
4:e116aa1488e6 5:3d60e549b0c2
1 module g;
2
3 void func(char[] str)
4 {
5 printf("%.*s\n", str.length, str.ptr);
6 }
7
8 void main()
9 {
10 char[] arr = "Hello World!";
11 func(arr);
12 func("ditto");
13 }