Debian Codegraph @

gcc/testsuite/gcc.dg/pr107389.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-optimized-alias" } */
3
4 unsigned foo (void *p)
5 {
6 unsigned i;
7 __builtin_memcpy (&i, __builtin_assume_aligned (p, 4), sizeof (unsigned));
8 return i;
9 }
10
11 /* Even when not optimizing we should have alignment info on the temporary
12 feeding the memcpy. */
13 /* { dg-final { scan-tree-dump "ALIGN = 4" "optimized" } } */