| 1 |
/* { dg-lto-do run } */ |
| 2 |
/* { dg-lto-options {"-O2 -flto-partition=max -flto -fno-ipa-sra"} } */ |
| 3 |
__attribute__ ((noinline)) |
| 4 |
void |
| 5 |
test (char *a) |
| 6 |
{ |
| 7 |
__builtin_memset (a,0,321); |
| 8 |
} |
| 9 |
__attribute__ ((noinline)) |
| 10 |
void |
| 11 |
test2 (double *x, double *y) |
| 12 |
{ |
| 13 |
__builtin_modf (*x,y); |
| 14 |
} |
| 15 |
int |
| 16 |
main (void) |
| 17 |
{ |
| 18 |
char array[321]; |
| 19 |
double x=1, y=2; |
| 20 |
char arrayz[321]; |
| 21 |
arrayz[0]=1; |
| 22 |
test (array); |
| 23 |
test2 (&x,&y); |
| 24 |
if (!__builtin_constant_p (x==2) || !__builtin_constant_p (arrayz[0]==1)) |
| 25 |
__builtin_abort (); |
| 26 |
return 0; |
| 27 |
} |