mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
[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:
13
test/g.d
Normal file
13
test/g.d
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user