[jit] Fix missing tests within test-combination.c
David Malcolm
dmalcolm@redhat.com
Fri Aug 8 19:37:00 GMT 2014
Committed to branch dmalcolm/jit:
test-combination.c attempts to run all tests within one context, but
was missing a couple of them. Add the missing tests.
gcc/testsuite/
* jit.dg/test-combination.c (create_code): Add missing calls to
create_code_quadratic and create_code_reading_struct.
(verify_code): Add missing calls to verify_code_quadratic and
verify_code_reading_struct.
---
gcc/testsuite/ChangeLog.jit | 7 +++++++
gcc/testsuite/jit.dg/test-combination.c | 4 ++++
2 files changed, 11 insertions(+)
diff --git a/gcc/testsuite/ChangeLog.jit b/gcc/testsuite/ChangeLog.jit
index 7fc5c4d..0842a1b 100644
--- a/gcc/testsuite/ChangeLog.jit
+++ b/gcc/testsuite/ChangeLog.jit
@@ -1,5 +1,12 @@
2014-08-08 David Malcolm <dmalcolm@redhat.com>
+ * jit.dg/test-combination.c (create_code): Add missing calls to
+ create_code_quadratic and create_code_reading_struct.
+ (verify_code): Add missing calls to verify_code_quadratic and
+ verify_code_reading_struct.
+
+2014-08-08 David Malcolm <dmalcolm@redhat.com>
+
* jit.dg/test-calling-function-ptr.c: New test case.
* jit.dg/test-combination.c: Add test-calling-function-ptr.c.
* jit.dg/test-error-call-through-ptr-with-mismatching-args.c: New
diff --git a/gcc/testsuite/jit.dg/test-combination.c b/gcc/testsuite/jit.dg/test-combination.c
index c7436c4..a8bf3bc 100644
--- a/gcc/testsuite/jit.dg/test-combination.c
+++ b/gcc/testsuite/jit.dg/test-combination.c
@@ -166,6 +166,8 @@ create_code (gcc_jit_context *ctxt, void * user_data)
create_code_functions (ctxt, user_data);
create_code_hello_world (ctxt, user_data);
create_code_linked_list (ctxt, user_data);
+ create_code_quadratic (ctxt, user_data);
+ create_code_reading_struct (ctxt, user_data);
create_code_string_literal (ctxt, user_data);
create_code_sum_of_squares (ctxt, user_data);
create_code_types (ctxt, user_data);
@@ -188,6 +190,8 @@ verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
verify_code_functions (ctxt, result);
verify_code_hello_world (ctxt, result);
verify_code_linked_list (ctxt, result);
+ verify_code_quadratic (ctxt, result);
+ verify_code_reading_struct (ctxt, result);
verify_code_string_literal (ctxt, result);
verify_code_sum_of_squares (ctxt, result);
verify_code_types (ctxt, result);
--
1.8.5.3
More information about the Gcc-patches
mailing list