diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-01-14 13:57:05 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-01-14 13:57:05 +0000 |
commit | 574cf4bc6c72fdd7d8c0fca8dfb2feec19d3191f (patch) | |
tree | 7f7240bbce251e6e80b1ee0197d1f378b7e45292 /test | |
parent | 0764996282041f7322e5dce790b1eea8cdf0c6ae (diff) |
Added a test for clang-format diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/clang-format/diagnostic.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 7433f9c2..195852d4 100644 --- a/test/CMakeLists.txt +++ b/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/test/clang-format/diagnostic.cpp b/test/clang-format/diagnostic.cpp new file mode 100644 index 00000000..e520dd4c --- /dev/null +++ b/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 '}' |