Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/va-arg-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 } |