Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr94189.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 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 } |