1 // { dg-options -std=c++0x } 2 3 struct A // { dg-error "const|operator=" } 4 { 5 const int i; 6 }; 7 main()8 int main() 9 { 10 A a = { 0 }; 11 a = a; // { dg-error "deleted" } 12 } 13