forked from OSchip/llvm-project
[clang-tidy] Improve the robustness of a test.
llvm-svn: 262618
This commit is contained in:
parent
0d67e4b5d6
commit
65c02ec837
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue