summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr58958.c
blob: faf377fb87ec42175cb813337552e72a2cce85c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

double a[10];
int f(int n){
  a[3]=9;
  __builtin_memset(&a[n],3,sizeof(double));
  return a[3]==9;
}

/* { dg-final { scan-tree-dump " == 9" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */