1// RUN: %check_clang_tidy %s google-explicit-constructor %t
2
3template<typename T>
4struct A { A(T); };
5// CHECK-MESSAGES: :[[@LINE-1]]:12: warning: single-argument constructors must be marked explicit
6
7void f() {
8 A<int> a(0);
9 A<double> b(0);
10}
11

source code of clang-tools-extra/test/clang-tidy/infrastructure/deduplication.cpp