summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/arrnew.C
blob: ea3f420147028c9ba8b6a83fc5642b4ef3180f1a (plain)
1
2
3
4
5
6
7
8
// { dg-do assemble  }
// { dg-options "" }
// PRMS Id: 4992

int *f(){
  return new int[1] = { 1 };   // { dg-error "lvalue" "err" }
  // { dg-warning "extended init" "warn" { target *-*-* } 6 }
}