1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
3 /* { dg-require-effective-target non_strict_align } */
4
5 int get_int(const void *p)
6 {
7 int w;
8 __builtin_memcpy(&w, p, sizeof (int));
9 return w;
10 }
11
12 /* { dg-final { scan-tree-dump-not "memcpy" "optimized" } } */
13 /* { dg-final { scan-tree-dump-times "MEM" 1 "optimized" } } */