Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pr45461.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR middle-end/45461 */ |
2 /* { dg-do compile } */ | |
3 | |
4 #include <stdarg.h> | |
5 | |
6 int | |
7 foo (int i, ...) | |
8 { | |
9 short e; | |
10 va_list ap; | |
11 va_start (ap, i); | |
12 | |
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 } */ | |
16 | |
17 va_end (ap); | |
18 return e; | |
19 } | |
20 |