summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/arrnew2.C
blob: 93d15d08d9046cb80ac27ca0c5dec2ef1b3e10a6 (plain)
1
2
3
4
5
6
7
8
// { dg-do run { xfail *-*-* } }
// { dg-options "-w -fpermissive" }

int *foo = new int[1](42); // { dg-bogus "" }
int main ()
{
  return foo[0] != 42;
}