libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pta-return-1.c
blob9c2416e78107e1fe9a0f1e54968c1f67e5500891
1 /* PR112653 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -fdump-tree-optimized" } */
5 char *test;
6 char *
7 copy_test ()
9 char *test2 = __builtin_malloc (1000);
10 __builtin_memmove (test2, test, 1000);
11 return test2;
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" } } */