view gcc/testsuite/gcc.dg/tree-ssa/pr83648-2.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O2 -fno-delete-null-pointer-checks -fdump-tree-local-pure-const-details" } */

void *g(unsigned n)
{
  return n ? __builtin_malloc (n) : 0;
}

void *h()
{
  return 0;
}

/* { dg-final { scan-tree-dump-not "Function found to be malloc: g" "local-pure-const1" } } */
/* { dg-final { scan-tree-dump-not "Function found to be malloc: h" "local-pure-const1" } } */