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-debuginfo.c2
-rw-r--r--gcc/testsuite/jit.dg/test-error-impossible-must-tail-call.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/testsuite/jit.dg/test-debuginfo.c b/gcc/testsuite/jit.dg/test-debuginfo.c
index 49e8834..e0d6f2d 100644
--- a/gcc/testsuite/jit.dg/test-debuginfo.c
+++ b/gcc/testsuite/jit.dg/test-debuginfo.c
@@ -1,5 +1,5 @@
/* Essentially this test checks that debug info are generated for globals
- locals and functions, including type info. The comment bellow is used
+ locals and functions, including type info. The comment below is used
as fake code (does not affect the test, use for manual debugging). */
/*
int a_global_for_test_debuginfo;
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: ");
}