1 /* { dg-do compile } */ 2 3 #include <stdarg.h> 4 5 va_list v; 6 volatile int i; 7 foo()8void 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 } 14