aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2017-11-22 21:12:36 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2017-11-22 21:12:36 +0000
commitd54387158acafe1272e7877a16149ae53d3b5a3b (patch)
tree332cad24f2b43c49055e309fdd7d573805bbbead
parent1324d3f33e0a4bd26fafdcafdce2f55bb4b45295 (diff)
downloadgcc-d54387158acafe1272e7877a16149ae53d3b5a3b.zip
gcc-d54387158acafe1272e7877a16149ae53d3b5a3b.tar.gz
gcc-d54387158acafe1272e7877a16149ae53d3b5a3b.tar.bz2
jit: update test suite for change to -Warray-bounds
jit.dg/test-error-array-bounds.c is a test of how libgccjit handles errors coming from the middle-end, using -Warray-bounds as an example. It started failing as of r254830 (aka 987b3316c4e7c908e3c7d2151c20971f9707ad66), due to that commit changing the wording of the message. This commit fixes the jit testcase by updating it to use the new wording. gcc/testsuite/ChangeLog: PR tree-optimization/82588 PR tree-optimization/82583 * jit.dg/test-error-array-bounds.c (verify_code): Update expected error message from -Warray-bounds. From-SVN: r255082
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/jit.dg/test-error-array-bounds.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d4cc5ab..36867c5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2017-11-22 David Malcolm <dmalcolm@redhat.com>
+
+ PR tree-optimization/82588
+ PR tree-optimization/82583
+ * jit.dg/test-error-array-bounds.c (verify_code): Update expected
+ error message from -Warray-bounds.
+
2017-11-22 Jakub Jelinek <jakub@redhat.com>
* g++.dg/graphite/pr41562.C: Add -Wno-return-type.
diff --git a/gcc/testsuite/jit.dg/test-error-array-bounds.c b/gcc/testsuite/jit.dg/test-error-array-bounds.c
index 732ec87..889c517 100644
--- a/gcc/testsuite/jit.dg/test-error-array-bounds.c
+++ b/gcc/testsuite/jit.dg/test-error-array-bounds.c
@@ -68,5 +68,6 @@ verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
/* ...and that the message was captured by the API. */
CHECK_STRING_VALUE (gcc_jit_context_get_first_error (ctxt),
- "array subscript is above array bounds [-Warray-bounds]");
+ "array subscript 10 is above array bounds of"
+ " 'unsigned char[10]' [-Warray-bounds]");
}