Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/jit.dg/test-combination.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Construct a test case by combining other test cases, to try to shake out state issues: all of the test cases are run in one process, inside one gcc_jit_context (per iteration). */ #include "all-non-failing-tests.h" /* Now construct a test case from all the other test cases. We undefine COMBINED_TEST so that we can now include harness.h "for real". */ #undef COMBINED_TEST #include "harness.h" /* Our testing hooks are the combination of the other test cases. */ void create_code (gcc_jit_context *ctxt, void * user_data) { for (int i = 0; i < num_testcases; i++) testcases[i].m_hook_to_create_code (ctxt, user_data); } void verify_code (gcc_jit_context *ctxt, gcc_jit_result *result) { for (int i = 0; i < num_testcases; i++) testcases[i].m_hook_to_verify_code (ctxt, result); }