Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/pr105149.c
2023-03-06 14:48:14 +01:00

16 lines
278 B
C

/* 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);
}