PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / memcpy-1.c
blob7098f83955d116b1d38c49f62a4d4511593a328a
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "nasty_local" 0 "optimized" } } */
4 /* { dg-final { cleanup-tree-dump "optimized" } } */
5 struct a {int a,b,c;} a;
6 int test(struct a a)
8 struct a nasty_local;
9 __builtin_memcpy (&nasty_local,&a, sizeof(a));
10 return nasty_local.a;