aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/error8.C
blob: a99207792ae073001b98f4ef0e45ad52c5f31c54 (plain)
1
2
3
4
5
6
7
// PR c++/39681
// { dg-do compile { target c++11 } }

struct A
{
  int* p = new foo; // { dg-error "16:foo. does not name a type" }
};