[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.
This commit is contained in:
Tomas Lindquist Olsen
2007-09-05 07:16:31 +02:00
parent fcbcd83d8b
commit 5d2e8f1009
5 changed files with 101 additions and 2 deletions

13
test/g.d Normal file
View File

@@ -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");
}

View File

@@ -12,7 +12,6 @@ int main()
printf("%p %p\n", s.ptr, sd.ptr);
printf("%c%c%c\n", s[0], s[1], s[2]);
}
char[16] s1 = void;
char[16] s2 = void;