Debian Codegraph @

gcc/testsuite/g++.dg/pr110249.C

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1-alias" } */
3
4 #include <stdint.h>
5 #include <string.h>
6
7 uint64_t read64r(const uint64_t &x) {
8 if ((uint64_t) &x % 8 ) {
9 __builtin_unreachable();
10 }
11 uint64_t value;
12 memcpy( &value, &x, sizeof(uint64_t) );
13 return value;
14 }
15
16 /* { dg-final { scan-tree-dump "fff8" "vrp1" } } */