Do not cost the permute node that are part of SLP load-lanes
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / va-arg-13.c
blob5b96e5c6a5a10b8eb355eef25436b6b6fffc4744
1 /* derived from mozilla source code */
3 #include <stdarg.h>
5 void abort (void);
6 void exit (int);
8 typedef struct {
9 void *stream;
10 va_list ap;
11 int nChar;
12 } ScanfState;
14 void dummy (va_list vap)
16 if (va_arg (vap, int) != 1234) abort();
17 return;
20 void test (int fmt, ...)
22 ScanfState state, *statep;
24 statep = &state;
26 va_start (statep->ap, fmt);
27 dummy (statep->ap);
28 va_end (statep->ap);
30 va_start (state.ap, fmt);
31 dummy (state.ap);
32 va_end (state.ap);
34 return;
37 int main (void)
39 test (456, 1234);
40 exit (0);