mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-30 09:01:19 +00:00
Added a test for clang-format diagnostics.
llvm-svn: 172407
This commit is contained in:
parent
79f49456fa
commit
92bb086fba
@ -22,7 +22,7 @@ set(CLANG_TOOLS_TEST_DEPS
|
||||
clang clang-headers FileCheck count not
|
||||
|
||||
# Individual tools we test.
|
||||
remove-cstr-calls cpp11-migrate
|
||||
remove-cstr-calls cpp11-migrate clang-format
|
||||
)
|
||||
|
||||
add_lit_testsuite(check-clang-tools "Running the Clang extra tools' regression tests"
|
||||
|
5
clang-tools-extra/test/clang-format/diagnostic.cpp
Normal file
5
clang-tools-extra/test/clang-format/diagnostic.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
// RUN: clang-format 2>&1 >/dev/null %s |FileCheck %s
|
||||
// REQUIRES: shell
|
||||
|
||||
}
|
||||
// CHECK: :[[@LINE-1]]:1: error: unexpected '}'
|
Loading…
Reference in New Issue
Block a user