jit: gcc_jit_context_new_binary_op check res type
authorAndrea Corallo <andrea.corallo@arm.com>
Thu, 4 Jul 2019 16:25:06 +0000 (16:25 +0000)
committerAndrea Corallo <akrl@gcc.gnu.org>
Thu, 4 Jul 2019 16:25:06 +0000 (16:25 +0000)
commit2b442504a0a4073992da8985ebcf1998ef4aff5e
treeb752f1ac911e361e8e659f03c5b684bf22896272
parente2c3bbbf905a8010729d35df8eda2792755107c4
jit: gcc_jit_context_new_binary_op check res type

gcc/jit/ChangeLog:
2019-07-04  Andrea Corallo <andrea.corallo@arm.com>

* libgccjit.c (gcc_jit_context_new_binary_op): Check result_type to be a
numeric type.

gcc/testsuite/ChangeLog:
2019-07-04  Andrea Corallo <andrea.corallo@arm.com>

* jit.dg/test-error-gcc_jit_context_new_binary_op-bad-res-type.c:
New testcase.

From-SVN: r273089
gcc/jit/ChangeLog
gcc/jit/libgccjit.c
gcc/testsuite/ChangeLog
gcc/testsuite/jit.dg/test-error-gcc_jit_context_new_binary_op-bad-res-type.c [new file with mode: 0644]