2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / va-arg-1.c
blobecd0e4d84bfc74462207620a5a7bec808c2db840
1 /* { dg-do compile } */
3 #include <stdarg.h>
5 va_list v;
6 volatile int i;
8 void foo()
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" } */