1// RUN: not clang-tidy %s --checks='-*,google-explicit-constructor' 2>&1 | FileCheck %s
2
3// NOLINTBEGIN
4class A { A(int i); };
5
6// Note: the expected output has been split over several lines so that clang-tidy
7// does not see the "no lint" suppression comment and mistakenly assume it
8// is meant for itself.
9// CHECK: :[[@LINE-6]]:4: error: unmatched 'NOLIN
10// CHECK: TBEGIN' comment without a subsequent 'NOLIN
11// CHECK: TEND' comment [clang-tidy-nolint]
12// CHECK: :[[@LINE-8]]:11: warning: single-argument constructors must be marked explicit
13

source code of clang-tools-extra/test/clang-tidy/infrastructure/nolintbeginend-begin-without-end.cpp