aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr99990.c
blob: 6878b00ce0d6a6f942d0835e6a9b82e4e1aed37d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c/99990 */
/* { dg-do compile } */
/* { dg-options "" } */

#include <stdarg.h>

void
foo ()
{
  va_arg (0, long);	/* { dg-error "first argument to 'va_arg' not of type 'va_list'" } */
  void *b[] = 0;	/* { dg-error "invalid initializer" } */
}