OSDN Git Service

* gcc.dg/builtins-config.h: Disable C99 runtime testing for
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / memcpy-1.c
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)
7 {
8 struct a nasty_local;
9 __builtin_memcpy (&nasty_local,&a, sizeof(a));
10 return nasty_local.a;
11 }