Skip to content

Commit d1c7bb1

Browse files
author
msebor
committed
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256709 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent dea7233 commit d1c7bb1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

gcc/testsuite/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2018-01-15 Martin Sebor <[email protected]>
2+
3+
PR testsuite/83869
4+
* c-c++-common/attr-nonstring-3.c: Work around bug c++/74762.
5+
16
2018-01-15 Thomas Koenig <[email protected]>
27

38
PR fortran/54613

gcc/testsuite/c-c++-common/attr-nonstring-3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,14 @@ void test_stpncpy_warn (struct MemArrays *p, unsigned n)
247247

248248
T (stpncpy (ptr, str, N + 1));
249249
T (stpncpy (ptr, arr, N + 1)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller than the specified bound 5" } */
250-
T (stpncpy (arr, str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows " } */
250+
T (stpncpy (arr, str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows " "bug 82609" { xfail c++ } } */
251251

252252
T (stpncpy (ptr, ptr, N + 1));
253253
T (stpncpy (ptr, parr, N + 1));
254254
T (stpncpy (parr, str, N + 1));
255255

256256
T (stpncpy (ptr, p->arr, N + 1)); /* { dg-warning "argument 2 declared attribute .nonstring. is smaller" } */
257-
T (stpncpy (p->arr, p->str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows" } */
257+
T (stpncpy (p->arr, p->str, N + 1)); /* { dg-warning "writing 5 bytes into a region of size 4 overflows" "bug 82609" { xfail c++ } } */
258258
T (stpncpy (p->parr, p->str, N + 1));
259259
}
260260

0 commit comments

Comments
 (0)