Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr45461.c
blobdb86d86ae584b71ae0b99d38e889bd2e37aa09d1
1 /* PR middle-end/45461 */
2 /* { dg-do compile } */
4 #include <stdarg.h>
6 int
7 foo (int i, ...)
9 short e;
10 va_list ap;
11 va_start (ap, i);
13 e = va_arg (ap, short); /* { dg-warning "is promoted" "promoted" } */
14 /* { dg-message "note: \\(so you should pass" "should pass" {target *-*-* } .-1 } */
15 /* { dg-message "note: if this code" "if this code" {target *-*-* } .-2 } */
17 va_end (ap);
18 return e;