aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2018-01-15 21:45:06 +0000
committerMartin Sebor <msebor@gcc.gnu.org>2018-01-15 14:45:06 -0700
commit732ed80aa31ea2c92fc5234f758a94b5766bfa16 (patch)
tree988b3c99885d85500e22c042cdefdd04072c6507 /gcc
parent8b3085e7e87f2acb7c0e3689e357ffd368c20cde (diff)
downloadgcc-732ed80aa31ea2c92fc5234f758a94b5766bfa16.zip
gcc-732ed80aa31ea2c92fc5234f758a94b5766bfa16.tar.gz
gcc-732ed80aa31ea2c92fc5234f758a94b5766bfa16.tar.bz2
PR testsuite/83869 - c-c++-common/attr-nonstring-3.c fails starting with r256683
testsuite/CHangeLog: * c-c++-common/attr-nonstring-3.c: Work around bug c++/74762. From-SVN: r256709
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/attr-nonstring-3.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 382ec74..aae8d1a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-15 Martin Sebor <msebor@redhat.com>
+
+ PR testsuite/83869
+ * c-c++-common/attr-nonstring-3.c: Work around bug c++/74762.
+
2018-01-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/54613
diff --git a/gcc/testsuite/c-c++-common/attr-nonstring-3.c b/gcc/testsuite/c-c++-common/attr-nonstring-3.c
index 1645ed3..1c50e0d 100644
--- a/gcc/testsuite/c-c++-common/attr-nonstring-3.c
+++ b/gcc/testsuite/c-c++-common/attr-nonstring-3.c
@@ -247,14 +247,14 @@ void test_stpncpy_warn (struct MemArrays *p, unsigned n)
T (stpncpy (ptr, str, N + 1));
T (stpncpy (ptr, arr, N + 1)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller than the specified bound 5" } */
- T (stpncpy (arr, str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows " } */
+ T (stpncpy (arr, str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows " "bug 82609" { xfail c++ } } */
T (stpncpy (ptr, ptr, N + 1));
T (stpncpy (ptr, parr, N + 1));
T (stpncpy (parr, str, N + 1));
T (stpncpy (ptr, p->arr, N + 1)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller" } */
- T (stpncpy (p->arr, p->str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows" } */
+ T (stpncpy (p->arr, p->str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows" "bug 82609" { xfail c++ } } */
T (stpncpy (p->parr, p->str, N + 1));
}