summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist47.C
blob: b76fb58361f9f4bb2ad301c41239310f7b241b6e (plain)
1
2
3
4
5
6
7
8
9
// { dg-options -std=c++0x }

struct A { ~A() = delete; };	// { dg-error "declared" }

int main()
{
  typedef const A cA[2];
  cA{};				// { dg-error "deleted" }
}