1 // RUN: clang-tidy %s -checks=-*,modernize-use-equals-default -- -std=c++11 -fdelayed-template-parsing -fexceptions | count 0
2 // Note: this test expects no diagnostics, but FileCheck cannot handle that,
3 // hence the use of | count 0.
4 
5 template <typename Ty>
6 struct S {
7   S<Ty>& operator=(const S<Ty>&) { return *this; }
8 };
9