File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -1999,7 +1999,8 @@ public void TestPointerToClass()
1999
1999
[ Test ]
2000
2000
public void TestValueTypeOutParameter ( )
2001
2001
{
2002
- CSharp . CSharp . ValueTypeOutParameter ( out var unionTest ) ;
2003
- Assert . AreEqual ( 2 , unionTest . A ) ;
2002
+ CSharp . CSharp . ValueTypeOutParameter ( out var unionTestA , out var unionTestB ) ;
2003
+ Assert . AreEqual ( 2 , unionTestA . A ) ;
2004
+ Assert . AreEqual ( 2 , unionTestB . B ) ;
2004
2005
}
2005
2006
}
Original file line number Diff line number Diff line change @@ -1792,7 +1792,8 @@ bool PointerTester::IsValid()
1792
1792
1793
1793
PointerTester* PointerToClass = &internalPointerTesterInstance;
1794
1794
1795
- void ValueTypeOutParameter (UnionTester* tester )
1795
+ void ValueTypeOutParameter (UnionTester* testerA, UnionTester* testerB )
1796
1796
{
1797
- tester->a = 2 ;
1797
+ testerA->a = 2 ;
1798
+ testerB->b = 2 ;
1798
1799
}
Original file line number Diff line number Diff line change @@ -1609,4 +1609,4 @@ union DLL_API UnionTester {
1609
1609
int b;
1610
1610
};
1611
1611
1612
- void DLL_API ValueTypeOutParameter (CS_OUT UnionTester* tester );
1612
+ void DLL_API ValueTypeOutParameter (CS_OUT UnionTester* testerA, CS_OUT UnionTester* testerB );
You can’t perform that action at this time.
0 commit comments