blob: 36334ca2d43e69b111f2e38f76a02967bfbaf987 [file] [log] [blame]
// 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);
}