2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / memcpy-strategy-4.c
blob5c51248b5c5e5f865d43985a055796c81a82b584
1 /* PR target/64200 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -march=atom -mmemcpy-strategy=libcall:-1:align -minline-stringops-dynamically" } */
5 #include <stdarg.h>
7 extern void bar(char *x);
9 void foo (int size, ...)
11 struct
13 char x[size];
14 } d;
16 va_list ap;
17 va_start(ap, size);
18 d = va_arg(ap, typeof (d));
19 va_end(ap);
20 bar(d.x);