aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/asan/pr83185.c
blob: 175d2ce15ffe1a4f748c6142993f8a213c2b04a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR middle-end/83185 */
/* { dg-do compile } */

#include <stdarg.h>

int bar (void);

void
foo (int i, ...)
{
  va_list aps[bar()];
  va_start (aps[4], i);
  va_end (aps[4]);
}