// RUN: %clang_cc1 -std=c++11 %s -verify
// expected-no-diagnostics
// C++98 [class.copy]p10 / C++11 [class.copy]p18.
// The implicitly-declared copy assignment operator for a class X will have the form
// X& X::operator=(const X&)
// if [every direct subobject] has a copy assignment operator whose first parameter is
// of type 'const volatile[opt] T &' or 'T'. Otherwise, it will have the form
// X &X::operator=(X&)
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;
;