1 /* Construct a test case by combining other test cases, to try to shake
2 out state issues: all of the test cases are run in one process, inside
3 one gcc_jit_context (per iteration). */
5 #include "all-non-failing-tests.h"
7 /* Now construct a test case from all the other test cases.
9 We undefine COMBINED_TEST so that we can now include harness.h
14 /* Our testing hooks are the combination of the other test cases. */
16 create_code (gcc_jit_context
*ctxt
, void * user_data
)
18 for (int i
= 0; i
< num_testcases
; i
++)
19 testcases
[i
].m_hook_to_create_code (ctxt
, user_data
);
23 verify_code (gcc_jit_context
*ctxt
, gcc_jit_result
*result
)
25 for (int i
= 0; i
< num_testcases
; i
++)
26 testcases
[i
].m_hook_to_verify_code (ctxt
, result
);