diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/g.d	Wed Sep 05 07:16:31 2007 +0200
@@ -0,0 +1,13 @@
+module g;
+
+void func(char[] str)
+{
+    printf("%.*s\n", str.length, str.ptr);
+}
+
+void main()
+{
+    char[] arr = "Hello World!";
+    func(arr);
+    func("ditto");
+}