blob: b748f454d6d9ddcf25155ff153e161a7b0525a1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* PR c/105149 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
#include <stdarg.h>
void
foo (int s, ...)
{
int e;
va_list ap;
va_start (ap, s);
e = va_arg (ap, int (void)) (); /* { dg-error "second argument to 'va_arg' is a function type" } */
va_end (ap);
}
|