diff options
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index fcddba72a8b..55e7cc6fe19 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -123,6 +123,11 @@ TEST_F(FormatTestJS, ContainerLiterals) { " // comment for tasks\n" " tasks: false\n" "};"); + verifyFormat("return {\n" + " 'finish':\n" + " //\n" + " a\n" + "};"); } TEST_F(FormatTestJS, SpacesInContainerLiterals) { |