mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-05 03:19:03 +02:00
[svn r5] Initial commit. Most things are very rough.
This commit is contained in:
19
test/arrays2.d
Normal file
19
test/arrays2.d
Normal file
@@ -0,0 +1,19 @@
|
||||
char[] get()
|
||||
{
|
||||
return "hello";
|
||||
}
|
||||
|
||||
void param(char[] s)
|
||||
{
|
||||
}
|
||||
|
||||
void refparam(ref char[] s)
|
||||
{
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
char[] dstr = get();
|
||||
param(dstr);
|
||||
refparam(dstr);
|
||||
}
|
||||
Reference in New Issue
Block a user