summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-53.c
blob: 34d1ac6b5234f157532cd94dd56c72d5cc0d2338 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-forwprop -fdump-tree-fre1" } */

const int a[]={1,2,3};
int f(){
    int*b=__builtin_malloc(12);
    __builtin_memcpy(b,a,12);
    return b[0];
}

/* { dg-final { scan-tree-dump "return 1;" "fre1" } } */