aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19476-3.C
blob: 051866e13c1fda45ca607d9afd255c146aa83984 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-O3 -fcheck-new -fdump-tree-optimized" } */

#include <new>

int g(){
  return 42 + (0 == new int);
}

/* { dg-final { scan-tree-dump-not "return 42" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */