@@ -46,13 +46,17 @@ SUITE( fbc_tests.threads.threadcall_ )
4646 end extern
4747
4848 sub BigInt cdecl( byref i as integer , byref ui as uinteger, _
49- byref l as longint, byref ul as ulongint )
49+ byref l as longint, byref ul as ulongint, _
50+ byref i4 as long , byref ui4 as ulong _
51+ )
5052
5153 ' Output by reference
5254 i = 17
5355 ui = 3
5456 l = 16
5557 ul = 4
58+ i4 = 15
59+ ui4 = 5
5660 end sub
5761
5862 sub FloatStr ( byval s as single , byref d as double , byref s1 as string )
@@ -113,6 +117,7 @@ SUITE( fbc_tests.threads.threadcall_ )
113117 TEST( default )
114118 dim thread as any ptr
115119 dim i as integer , ui as uinteger, l as longint, ul as ulongint
120+ dim i4 as long , iu4 as ulong
116121 dim d as double
117122 dim as string s1, s2
118123 dim bv as integer ptr, cu as ComplexUDT, AnArray( 0 to 1 ) as string
@@ -128,7 +133,7 @@ SUITE( fbc_tests.threads.threadcall_ )
128133 SmallInt_Thread = threadcall SmallInt( 20 , 1 , 19 , 2 )
129134 testWindowsMs_thread = threadcall testWindowsMs( )
130135 # endif
131- BigInt_Thread = threadcall BigInt( i, ui, l, ul )
136+ BigInt_Thread = threadcall BigInt( i, ui, l, ul, i4, iu4 )
132137 s1 = "fourteen"
133138 FloatStr_Thread = threadcall FloatStr( 15.00 , d, s1 )
134139 TypeArray_Thread = threadcall TypeArray( su, cu, AnArray(), byval @bv )
@@ -155,7 +160,7 @@ SUITE( fbc_tests.threads.threadcall_ )
155160 threadwait ONamespace_Thread
156161
157162 '' check byref args
158- CU_ASSERT_TRUE( i = 17 and ui = 3 and l = 16 and ul = 4 )
163+ CU_ASSERT_TRUE( i = 17 and ui = 3 and l = 16 and ul = 4 and i4 = 15 and iu4 = 5 )
159164 CU_ASSERT_TRUE( d > 12.99 and d < 13 . 01 and s1 = "five" )
160165 CU_ASSERT_TRUE( cu.c( 0 ) = 7 and cu.c( 1 ) = 11 and cu.c( 2 ) = 8 )
161166 CU_ASSERT_TRUE( cu.d = "ten" and AnArray( 0 ) = "ten" )
0 commit comments