Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pragma-diag-8.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -Wall" } */ char one[50]; char two[50]; void test_strncat (void) { (void) __builtin_strcpy (one, "gh"); (void) __builtin_strcpy (two, "ef"); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-overflow=" #pragma GCC diagnostic ignored "-Warray-bounds" (void) __builtin_strncat (one, two, 99); #pragma GCC diagnostic pop }