diff options
author | Daniel Jasper <djasper@google.com> | 2015-01-19 10:50:51 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-01-19 10:50:51 +0000 |
commit | 7a1e6b7b2d5a5e77f8b6330211fccec1ad7b2d55 (patch) | |
tree | cb751397c2cad92c62bdecc61e3bf5e5bc64fe25 /unittests | |
parent | 9f083fd73e7aca8768ad21aee71bca2d6718eaa8 (diff) | |
download | clang-7a1e6b7b2d5a5e77f8b6330211fccec1ad7b2d55.tar.gz |
clang-format: Fix endless loop on incomplete try-catch-block.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index e1484b7239..5f8fba26e5 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -2230,6 +2230,9 @@ TEST_F(FormatTest, FormatTryCatch) { " throw;\n" " }\n" "};\n"); + + // Incomplete try-catch blocks. + verifyFormat("try {} catch ("); } TEST_F(FormatTest, IncompleteTryCatchBlocks) { |