diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-01-16 11:45:16 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-01-16 11:45:16 +0000 |
commit | 51c23fa34bb29b77fc0867b233147d3427757573 (patch) | |
tree | 9f0bf27003b068f84086001ce3645307e3717ac4 /unittests/Format/FormatTest.cpp | |
parent | d881875b6c78386c4f0da911c1110f9ed1235c6a (diff) |
Clang Format: A couple of tests for the trailing stuff case
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 4d860c1f65..e75d61e662 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -1213,6 +1213,12 @@ TEST_F(FormatTest, HandlesIncludeDirectives) { //===----------------------------------------------------------------------===// TEST_F(FormatTest, IncorrectCodeTrailingStuff) { + verifyFormat("void f() { return; }\n42"); + verifyFormat("void f() {\n" + " if (0)\n" + " return;\n" + "}\n" + "42"); verifyFormat("void f() { return }\n42"); verifyFormat("void f() {\n" " if (0)\n" |