1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

MemCpy fix for reg composite sret

This commit is contained in:
Brian Fiete 2021-10-25 08:45:34 -07:00
parent 4b7ad7036c
commit 076be19488
2 changed files with 60 additions and 43 deletions

View file

@ -135,6 +135,24 @@ namespace Tests
}
}
public struct StructN
{
public int mA = 123;
}
public struct StructO
{
public StructN mA;
}
public static StructN GetStructN()
{
var sn = StructN();
var so = scope StructO();
so.mA = sn;
return sn;
}
[Test]
static void TestBasics()
{
@ -168,6 +186,9 @@ namespace Tests
Test.Assert(sm.a == 12);
Test.Assert(sm.b == 23);
Test.Assert(sm.c == 200);
StructN sn = GetStructN();
Test.Assert(sn.mA == 123);
}
[Test]