index.html (3.10): Add note about mips atomicity.h.
[official-gcc.git] / gcc / testsuite / gcc.dg / va-arg-1.c
bloba14823725daa5db792ad93735b0cd4eeb07b30e2
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" "char" } */
11 i = va_arg(v, short); /* { dg-warning "is promoted to" "short" } */
12 i = va_arg(v, float); /* { dg-warning "is promoted to" "float" } */