OSDN Git Service

Index: gcc/ChangeLog
[pf3gnuchains/gcc-fork.git] / 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 }