I added this test back in
r7-934-g15c671a79ca66d, but it looks like
r15-2125-g81824596361cf4 changed the error message.
gcc/testsuite/ChangeLog:
PR testsuite/119783
jit.dg/test-error-impossible-must-tail-call.c
* jit.dg/test-error-impossible-must-tail-call.c (verify_code):
Check that we get a suitable-looking error message, but don't
try to specify exactly what the message is.
Signed-off-by: David Malcolm <dmalcolm@redhat.com>
{
CHECK_VALUE (result, NULL);
- CHECK_STRING_VALUE (gcc_jit_context_get_first_error (ctxt),
- "cannot tail-call: callee returns a structure");
+ /* Check that we get an error message with a reason; we
+ don't want to overspecify the test with a precise reason, though. */
+ CHECK_STRING_STARTS_WITH (gcc_jit_context_get_first_error (ctxt),
+ "cannot tail-call: ");
}