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