annotate 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
rev   line source
lindquist@5 1 module g;
lindquist@5 2
lindquist@5 3 void func(char[] str)
lindquist@5 4 {
lindquist@5 5 printf("%.*s\n", str.length, str.ptr);
lindquist@5 6 }
lindquist@5 7
lindquist@5 8 void main()
lindquist@5 9 {
lindquist@5 10 char[] arr = "Hello World!";
lindquist@5 11 func(arr);
lindquist@5 12 func("ditto");
lindquist@5 13 }