comparison test/plain_c++/test_main.cc @ 585:5a46d46b318b

- fixed wrong mode setting in test (ellipse mode needs to be set after this ptr for thiscalls)
author Tassilo Philipp
date Tue, 13 Sep 2022 17:43:51 +0200
parents fcb9d00b5a00
children b26a2a4e1daa
comparison
equal deleted inserted replaced
584:f76dbea7a0c1 585:5a46d46b318b
251 r = r && b; 251 r = r && b;
252 252
253 /* ellipsis test w/ this pointer */ 253 /* ellipsis test w/ this pointer */
254 254
255 dcReset(pc); 255 dcReset(pc);
256 dcArgPointer(pc, pThis);
256 dcMode(pc, DC_CALL_C_ELLIPSIS); 257 dcMode(pc, DC_CALL_C_ELLIPSIS);
257 dcArgPointer(pc, pThis);
258 dcArgInt(pc, 23); 258 dcArgInt(pc, 23);
259 dcMode(pc, DC_CALL_C_ELLIPSIS_VARARGS); 259 dcMode(pc, DC_CALL_C_ELLIPSIS_VARARGS);
260 dcArgInt(pc, -223); 260 dcArgInt(pc, -223);
261 dcArgInt(pc, 888); 261 dcArgInt(pc, 888);
262 int r_ = dcCallInt(pc, vtbl[VTBI_SUM_3_INTS]); 262 int r_ = dcCallInt(pc, vtbl[VTBI_SUM_3_INTS]);