blob: 9c2416e78107e1fe9a0f1e54968c1f67e5500891 [file] [log] [blame]
/* PR112653 */
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
char *test;
char *
copy_test ()
{
char *test2 = __builtin_malloc (1000);
__builtin_memmove (test2, test, 1000);
return test2;
}
/* We should be able to turn the memmove into memcpy by means of alias
analysis. */
/* { dg-final { scan-tree-dump "memcpy" "optimized" } } */