OSDN Git Service

2010-01-21 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / memcpy-1.c
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 /* { dg-final { cleanup-tree-dump "optimized" } } */
6 struct a {int a,b,c;} a;
7 int test(struct a a)
8 {
9 struct a nasty_local;
10 __builtin_memcpy (&nasty_local,&a, sizeof(a));
11 return nasty_local.a;
12 }