summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr17301-2.c
blob: b91a2314b6404a8243d8d53cdb7e5d4ae9058806 (plain)
1
2
3
4
5
6
7
8
9
/* Invalid use of __builtin_va_start should not cause an ICE.  Bug
   17301.  Case with no arguments.  */
/* { dg-do compile } */
/* { dg-options "" } */

void foo (char *format, ...)
{
  __builtin_va_start (); /* { dg-error "too few arguments to function '__builtin_va_start'" } */
}