URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [builtin-free.c] - Rev 689
Compare with Previous | Blame | View Log
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ void bar (void *); void foo(unsigned n) { void *p = __builtin_malloc (n); if (p) { bar (p); __builtin_free (p); p = 0; } __builtin_free (p); } /* We should remove the redundant call to free. */ /* { dg-final { scan-tree-dump-times "free" 1 "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */