зеркало из https://github.com/mono/CppSharp.git
More stringent test; Fix indentation (of the code itself, not in the generator)
This commit is contained in:
Родитель
ebe6b8a415
Коммит
20950c5a34
|
@ -1999,7 +1999,8 @@ public unsafe class CSharpTests
|
|||
[Test]
|
||||
public void TestValueTypeOutParameter()
|
||||
{
|
||||
CSharp.CSharp.ValueTypeOutParameter(out var unionTest);
|
||||
Assert.AreEqual(2, unionTest.A);
|
||||
CSharp.CSharp.ValueTypeOutParameter(out var unionTestA, out var unionTestB);
|
||||
Assert.AreEqual(2, unionTestA.A);
|
||||
Assert.AreEqual(2, unionTestB.B);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1792,7 +1792,8 @@ bool PointerTester::IsValid()
|
|||
|
||||
PointerTester* PointerToClass = &internalPointerTesterInstance;
|
||||
|
||||
void ValueTypeOutParameter(UnionTester* tester)
|
||||
void ValueTypeOutParameter(UnionTester* testerA, UnionTester* testerB)
|
||||
{
|
||||
tester->a = 2;
|
||||
testerA->a = 2;
|
||||
testerB->b = 2;
|
||||
}
|
||||
|
|
|
@ -1609,4 +1609,4 @@ union DLL_API UnionTester {
|
|||
int b;
|
||||
};
|
||||
|
||||
void DLL_API ValueTypeOutParameter(CS_OUT UnionTester* tester);
|
||||
void DLL_API ValueTypeOutParameter(CS_OUT UnionTester* testerA, CS_OUT UnionTester* testerB);
|
||||
|
|
Загрузка…
Ссылка в новой задаче