mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Made 'in' mangle as 'const&'
This commit is contained in:
parent
cf9890349d
commit
52a8aca30d
2 changed files with 12 additions and 12 deletions
|
@ -19,6 +19,9 @@ namespace Tests
|
|||
[LinkName(.CPP)]
|
||||
[return: MangleConst]
|
||||
public extern ref float MethodA2([MangleConst]ref float val);
|
||||
[LinkName(.CPP)]
|
||||
[return: MangleConst]
|
||||
public extern ref float MethodA3(in float val);
|
||||
}
|
||||
|
||||
[CRepr]
|
||||
|
@ -399,6 +402,7 @@ namespace Tests
|
|||
Test.Assert(StructA.sVal == 1234);
|
||||
float f = 123;
|
||||
Test.Assert(sa0.MethodA2(ref f) == 123);
|
||||
Test.Assert(sa0.MethodA3(f) == 123);
|
||||
|
||||
StartTest("Func0");
|
||||
Test.Assert(Func0(12, 34) == 3412);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue