(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
va-arg-1.c
       1  /* { dg-do compile } */
       2  
       3  #include <stdarg.h>
       4  
       5  va_list v;
       6  volatile int i;
       7  
       8  void foo()
       9  {
      10    i = va_arg(v, char); /* { dg-warning "is promoted to|so you should|abort" "char" } */
      11    i = va_arg(v, short); /* { dg-warning "is promoted to|abort" "short" } */
      12    i = va_arg(v, float); /* { dg-warning "is promoted to|abort" "float" } */
      13  }