Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr87099.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
/* PR middle-end/87099 */ /* { dg-do compile } */ /* { dg-require-effective-target alloca } */ /* { dg-options "-Wstringop-overflow" } */ void bar (char *); int foo (int n) { char v[n]; bar (v); return __builtin_strncmp (&v[1], "aaa", 3); } int baz (int n, char *s) { char v[n]; bar (v); return __builtin_strncmp (&v[1], s, 3); }