aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-dse-39.c
blob: bd663f1a14c5117deb0ae617745aa3557f0584fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/93683 - ICE on calloc with unused return value
   in ao_ref_init_from_ptr_and_size
   { dg-do compile }
   { dg-options "-O2 -Wall -Wno-unused-result -fdump-tree-cddce1" } */

void f0 (int *a)
{
  *a = 0;
  __builtin_calloc (1, 1);
}

void f1 (int *a, unsigned n)
{
  *a = n;
  __builtin_calloc (n, n);
}

/* { dg-final { scan-tree-dump-not "calloc" "cddce1" } } */