]>
Commit | Line | Data |
---|---|---|
9a9822e1 RG |
1 | /* { dg-do compile } */ |
2 | /* { dg-options "-O -fdump-tree-optimized" } */ | |
4ff10c0e | 3 | /* { dg-require-effective-target non_strict_align } */ |
9a9822e1 RG |
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" } } */ |