blob: 8733e8d7f5c258c8a0d7dca15c44b87899275a33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* PR tree-optimization/118947 */
/* { dg-do compile { target size32plus } } */
/* { dg-options "-O2 -fdump-tree-forwprop1-details" } */
/* { dg-final { scan-tree-dump-times "after previous" 1 "forwprop1" } } */
void* aaa();
void* bbb()
{
char buf[1025] = {};
/* Tha call to aaa should not matter and clobber buf. */
void* ret = aaa();
__builtin_memcpy(ret, buf, sizeof(buf));
return ret;
}
|