summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/modernize-use-default-delayed.cpp
blob: c7163e8d934136ff5685893ade0d849d6c9f6ef5 (plain)
1
2
3
4
5
6
7
8
// RUN: clang-tidy %s -checks=-*,modernize-use-default -- -std=c++11 -fdelayed-template-parsing -fexceptions | count 0
// Note: this test expects no diagnostics, but FileCheck cannot handle that,
// hence the use of | count 0.

template <typename Ty>
struct S {
  S<Ty>& operator=(const S<Ty>&) { return *this; }
};
OpenPOWER on IntegriCloud