diff options
Diffstat (limited to 'unittests/Format/FormatTest.cpp')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 7 |
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) { |