(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr102762.c
       1  /* { dg-do compile } */
       2  /* We fail to diagnose the invalid __builtin_va_arg_pack use with -flto.  */
       3  /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
       4  
       5  void log_bad_request();
       6  void foo(a, b)
       7       int a, b;
       8  {
       9    log_bad_request(0, __builtin_va_arg_pack());  /* { dg-error "invalid use" } */
      10    foo(0);
      11  }