blob: d6e9ebe49a97791335306813f6aa6731d1c2dcfd [file] [log] [blame]
// RUN: %check_clang_tidy -std=c++14-or-later %s misc-unconventional-assign-operator %t -- -- -fno-delayed-template-parsing
struct BadModifier {
BadModifier& operator=(const BadModifier&) const;
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: operator=() should not be marked 'const'
};
struct PR35468 {
template<typename T> auto &operator=(const T &) {
return *this;
}
};