comparison gcc/testsuite/gcc.dg/pr94189.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
comparison
equal deleted inserted replaced
145:1830386684a0 152:2b5abeee2509
1 /* PR middle-end/94189 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fcompare-debug" } */
4
5 const char a[] = { 'a', 'b', 'c', 'd' };/* { dg-message "declared here" } */
6
7 int
8 foo (void)
9 {
10 return __builtin_strnlen (a, 5); /* { dg-warning "specified bound 5 exceeds the size 4 of unterminated array" } */
11 }