From ae6e53c15db2264799e91298b8f4d703b2fd0842 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Wed, 16 Jan 2013 11:45:16 +0000 Subject: [PATCH] Clang Format: A couple of tests for the trailing stuff case llvm-svn: 172607 --- clang/unittests/Format/FormatTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clang/unittests/Format/FormatTest.cpp b/clang/unittests/Format/FormatTest.cpp index 4d860c1f6561..e75d61e662b4 100644 --- a/clang/unittests/Format/FormatTest.cpp +++ b/clang/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" -- 2.34.1