aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/jit.dg
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/jit.dg')
-rw-r--r--gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c b/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c
index 8848d30..a50dcb2 100644
--- a/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c
+++ b/gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c
@@ -88,6 +88,8 @@ verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
{
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: ");
}