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

struct A			// { dg-error "const|operator=" }
{
  const int i;
};

int main()
{
  A a = { 0 };
  a = a;			// { dg-error "deleted" }
}