PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr65802.c
blobfcec234dc0b84aba380b7f194257a7fbc6c48b48
1 /* { dg-do compile } */
2 /* { dg-options "-O0 -fexceptions" } */
4 #include <stdarg.h>
6 struct S
8 int (*m_fn1) (void);
9 } a;
11 void
12 fn1 (int d, ...)
14 va_list c;
15 va_start (c, d);
18 int *d = va_arg (c, int *);
20 int **e = &d;
22 a.m_fn1 ();
25 a.m_fn1 ();
27 va_end (c);