summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-tidy/misc-suspicious-semicolon-fail.cpp
blob: 12ee464bbeec2795f3bbd7bd0dcf812fcc5771f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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
}
OpenPOWER on IntegriCloud