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// FIXME: Make the test work in all language modes.
5
6template <typename Ty>
7struct S {
8 S<Ty>& operator=(const S<Ty>&) { return *this; }
9};
10

source code of clang-tools-extra/test/clang-tidy/checkers/modernize/use-equals-default-delayed.cpp