diff options
author | David Malcolm <dmalcolm@redhat.com> | 2015-01-09 22:05:55 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2015-01-09 22:05:55 +0000 |
commit | 8cf8f223466df156ebbd5762f5c901f0a3812e43 (patch) | |
tree | e86f079a53565a0e2dacb12fbc71d2083050e291 /gcc/testsuite/jit.dg/test-threads.c | |
parent | 5357406ff8f315c90a69b87862b11d00830cd159 (diff) | |
download | gcc-8cf8f223466df156ebbd5762f5c901f0a3812e43.tar.gz |
Simplify jit.dg/test-combination.c
gcc/testsuite/ChangeLog:
* jit.dg/test-threads.c (struct testcase): Move declaration
to jit.dg/all-non-failing-tests.h.
(testcases): Likewise.
* jit.dg/all-non-failing-tests.h (struct testcase): Move
declaration here from jit.dg/all-non-failing-tests.h.
(testcases): Likewise.
* jit.dg/test-combination.c (create_code): Eliminate spelling
out all of the testcases in favor of looping through the
"testcases" metadata.
(verify_code): Likewise.
From-SVN: r219413
Diffstat (limited to 'gcc/testsuite/jit.dg/test-threads.c')
-rw-r--r-- | gcc/testsuite/jit.dg/test-threads.c | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/gcc/testsuite/jit.dg/test-threads.c b/gcc/testsuite/jit.dg/test-threads.c index 13e414db878..d4e53b259df 100644 --- a/gcc/testsuite/jit.dg/test-threads.c +++ b/gcc/testsuite/jit.dg/test-threads.c @@ -91,92 +91,6 @@ note (const char* fmt, ...) #undef COMBINED_TEST #include "harness.h" -struct testcase -{ - const char *m_name; - void (*m_hook_to_create_code) (gcc_jit_context *ctxt, - void * user_data); - void (*m_hook_to_verify_code) (gcc_jit_context *ctxt, - gcc_jit_result *result); -}; - -const struct testcase testcases[] = { - {"accessing_struct", - create_code_accessing_struct, - verify_code_accessing_struct}, - {"accessing_union", - create_code_accessing_union, - verify_code_accessing_union}, - {"arith_overflow", - create_code_arith_overflow, - verify_code_arith_overflow}, - {"array_as_pointer", - create_code_array_as_pointer, - verify_code_array_as_pointer}, - {"arrays", - create_code_arrays, - verify_code_arrays}, - {"calling_external_function", - create_code_calling_external_function, - verify_code_calling_external_function}, - {"calling_function_ptr", - create_code_calling_function_ptr, - verify_code_calling_function_ptr}, - {"constants", - create_code_constants, - verify_code_constants}, - {"dot_product", - create_code_dot_product, - verify_code_dot_product}, - {"expressions", - create_code_expressions, - verify_code_expressions}, - {"factorial", - create_code_factorial, - verify_code_factorial}, - {"fibonacci", - create_code_fibonacci, - verify_code_fibonacci}, - {"functions", - create_code_functions, - verify_code_functions}, - {"hello_world", - create_code_hello_world, - verify_code_hello_world}, - {"linked_list", - create_code_linked_list, - verify_code_linked_list}, - {"long_names", - create_code_long_names, - verify_code_long_names}, - {"quadratic", - create_code_quadratic, - verify_code_quadratic}, - {"nested_loop", - create_code_nested_loop, - verify_code_nested_loop}, - {"reading_struct ", - create_code_reading_struct , - verify_code_reading_struct }, - {"string_literal", - create_code_string_literal, - verify_code_string_literal}, - {"sum_of_squares", - create_code_sum_of_squares, - verify_code_sum_of_squares}, - {"types", - create_code_types, - verify_code_types}, - {"using_global", - create_code_using_global, - verify_code_using_global}, - {"volatile", - create_code_volatile, - verify_code_volatile} -}; - -const int num_testcases = (sizeof (testcases) / sizeof (testcases[0])); - struct thread_data { pthread_t m_tid; |