Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/pta-return-1.c

raw
1 /* PR112653 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fdump-tree-optimized" } */
4
5 char *test;
6 char *
7 copy_test ()
8 {
9 char *test2 = __builtin_malloc (1000);
10 __builtin_memmove (test2, test, 1000);
11 return test2;
12 }
13
14 /* We should be able to turn the memmove into memcpy by means of alias
15 analysis. */
16 /* { dg-final { scan-tree-dump "memcpy" "optimized" } } */