Added a test for clang-format diagnostics.

llvm-svn: 172407
This commit is contained in:
Alexander Kornienko 2013-01-14 13:57:05 +00:00
parent 79f49456fa
commit 92bb086fba
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -0,0 +1,5 @@
// RUN: clang-format 2>&1 >/dev/null %s |FileCheck %s
// REQUIRES: shell
}
// CHECK: :[[@LINE-1]]:1: error: unexpected '}'