mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-03 11:03:14 +01:00
[svn r34] * Fixed passing a struct literal as function argument
This commit is contained in:
15
test/structs6.d
Normal file
15
test/structs6.d
Normal 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
5
test/unittest1.d
Normal file
@@ -0,0 +1,5 @@
|
||||
module unittest1;
|
||||
|
||||
unittest
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user