diff options
-rw-r--r-- | clang/unittests/Format/FormatTestObjC.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestObjC.cpp b/clang/unittests/Format/FormatTestObjC.cpp index fc1ee2574c0..58559eabe85 100644 --- a/clang/unittests/Format/FormatTestObjC.cpp +++ b/clang/unittests/Format/FormatTestObjC.cpp @@ -1227,6 +1227,15 @@ TEST_F(FormatTestObjC, AlwaysBreakBeforeMultilineStrings) { " @\"cccc\");"); verifyFormat("aaaa(qqq, @\"bbbb\"\n" " @\"cccc\");"); + verifyFormat("[aaaa qqqq:@\"bbbb\"\n" + " @\"cccc\"];"); + verifyFormat("aaaa = [aaaa qqqq:@\"bbbb\"\n" + " @\"cccc\"];"); + verifyFormat("[aaaa qqqq:@\"bbbb\"\n" + " @\"cccc\"\n" + " rr:42\n" + " ssssss:@\"ee\"\n" + " @\"fffff\"];"); } } // end namespace |