summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/deduplication.cpp
blob: 8a912faeaa3b55afe4935545aac407484f44924f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: clang-tidy -checks='-*,google-explicit-constructor' %s -- | FileCheck %s

template<typename T>
struct A { A(T); };
// CHECK: :[[@LINE-1]]:12: warning: single-argument constructors must be explicit [google-explicit-constructor]
// CHECK-NOT: warning:


void f() {
  A<int> a(0);
  A<double> b(0);
}
OpenPOWER on IntegriCloud