(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pragma-diag-8.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -Wall" } */
       3  
       4  
       5  char one[50];
       6  char two[50];
       7  
       8  void
       9  test_strncat (void)
      10  {
      11    (void) __builtin_strcpy (one, "gh");
      12    (void) __builtin_strcpy (two, "ef");
      13   
      14  #pragma GCC diagnostic push
      15  #pragma GCC diagnostic ignored "-Wstringop-overflow="
      16  #pragma GCC diagnostic ignored "-Warray-bounds"
      17    (void) __builtin_strncat (one, two, 99); 
      18  #pragma GCC diagnostic pop
      19  }
      20