(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr79677.c
       1  /* PR c/79677 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wformat -Werror=format-security -Wformat" } */
       4  /* { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 } */
       5  
       6  void foo (char *);
       7  
       8  int
       9  main ()
      10  {
      11    char s[10] = "%s";
      12    foo (s);
      13    __builtin_printf (s);	/* { dg-error "format not a string literal and no format arguments" } */
      14    return 0;
      15  }