[clang-tidy] Improve the robustness of a test.

llvm-svn: 262618
This commit is contained in:
Gabor Horvath 2016-03-03 13:43:23 +00:00
parent 0d67e4b5d6
commit 65c02ec837
1 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
// RUN: clang-tidy %s -checks="-*,misc-suspicious-semicolon" -- 2>&1 > %t
// RUN: FileCheck --input-file=%t %s
// 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.
@ -8,6 +7,6 @@ bool g();
void f() {
if (g());
// CHECK-NOT: :[[@LINE-1]]:11: warning: potentially unintended semicolon [misc-suspicious-semicolon]
// CHECK-NOT: [misc-suspicious-semicolon]
int a
}