diff options
-rw-r--r-- | clang-tools-extra/test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | clang-tools-extra/test/clang-format/diagnostic.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/clang-tools-extra/test/CMakeLists.txt b/clang-tools-extra/test/CMakeLists.txt index 7433f9c2608..195852d449d 100644 --- a/clang-tools-extra/test/CMakeLists.txt +++ b/clang-tools-extra/test/CMakeLists.txt @@ -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" diff --git a/clang-tools-extra/test/clang-format/diagnostic.cpp b/clang-tools-extra/test/clang-format/diagnostic.cpp new file mode 100644 index 00000000000..e520dd4cebb --- /dev/null +++ b/clang-tools-extra/test/clang-format/diagnostic.cpp @@ -0,0 +1,5 @@ +// RUN: clang-format 2>&1 >/dev/null %s |FileCheck %s +// REQUIRES: shell + +} +// CHECK: :[[@LINE-1]]:1: error: unexpected '}' |