aboutsummaryrefslogtreecommitdiff
path: root/unittests/Format/FormatTest.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-01-09 21:42:32 +0000
committerNico Weber <nicolasweber@gmx.de>2013-01-09 21:42:32 +0000
commit049c44767370b7257d17a5c32d407f19efa01c6f (patch)
treed248dca00f6e5d92d810f83cee5a33203e768917 /unittests/Format/FormatTest.cpp
parent1abe6ea5b8961a0fc14c2e0bdbd7451f643ca065 (diff)
Formatter: Make parseObjCUntilAtEnd() actually work.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r--unittests/Format/FormatTest.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp
index e06544a95f..15fe9aa9d7 100644
--- a/unittests/Format/FormatTest.cpp
+++ b/unittests/Format/FormatTest.cpp
@@ -1189,6 +1189,8 @@ TEST_F(FormatTest, FormatObjCInterface) {
"@end");
verifyFormat("@interface Foo\n"
+ "@end\n"
+ "@interface Bar\n"
"@end");
verifyFormat("@interface Foo : Bar\n"
@@ -1262,6 +1264,11 @@ TEST_F(FormatTest, FormatObjCProtocol) {
verifyFormat("@protocol Foo;\n"
"@protocol Bar;\n");
+
+ verifyFormat("@protocol Foo\n"
+ "@end\n"
+ "@protocol Bar\n"
+ "@end");
}
TEST_F(FormatTest, ObjCAt) {