2016-12-02 01:24:42 +08:00
|
|
|
// RUN: clang-tidy %s -checks=-*,modernize-use-equals-default -- -std=c++11 -fdelayed-template-parsing -fexceptions | count 0
|
2016-01-21 06:14:10 +08:00
|
|
|
// Note: this test expects no diagnostics, but FileCheck cannot handle that,
|
|
|
|
// hence the use of | count 0.
|
2019-05-20 17:26:47 +08:00
|
|
|
// FIXME: Make the test work in all language modes.
|
2016-01-21 06:14:10 +08:00
|
|
|
|
|
|
|
template <typename Ty>
|
|
|
|
struct S {
|
|
|
|
S<Ty>& operator=(const S<Ty>&) { return *this; }
|
|
|
|
};
|