Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / gcc.dg / memcpy-1.c
blob7c0f9449ce8bf5baedcdc025f253ddc22a8b8e64
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* PR36598 AVR fail maybe due to cost metrics */
4 /* { dg-final { scan-tree-dump-times "nasty_local\\." 0 "optimized" { xfail { "avr-*-*" } } } } */
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;