llvm-project/clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-f...

13 lines
286 B
C++

// RUN: clang-tidy %s -checks="-*,misc-suspicious-semicolon" -- 2>&1 | FileCheck %s
// Note: This test verifies that, the checker does not emit any warning for
// files that do not compile.
bool g();
void f() {
if (g());
// CHECK-NOT: [misc-suspicious-semicolon]
int a
}