[svn r34] * Fixed passing a struct literal as function argument

This commit is contained in:
Tomas Lindquist Olsen
2007-10-04 14:15:54 +02:00
parent 43d59e151b
commit c188a544de
3 changed files with 56 additions and 27 deletions

15
test/structs6.d Normal file
View File

@@ -0,0 +1,15 @@
module structs6;
struct S
{
float f;
}
void func(S s)
{
}
void main()
{
func(S());
}

5
test/unittest1.d Normal file
View File

@@ -0,0 +1,5 @@
module unittest1;
unittest
{
}