summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestTableGen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Format/FormatTestTableGen.cpp')
-rw-r--r--clang/unittests/Format/FormatTestTableGen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestTableGen.cpp b/clang/unittests/Format/FormatTestTableGen.cpp
index b3771f6d812..06029bd8c72 100644
--- a/clang/unittests/Format/FormatTestTableGen.cpp
+++ b/clang/unittests/Format/FormatTestTableGen.cpp
@@ -51,5 +51,9 @@ TEST_F(FormatTestTableGen, FormatStringBreak) {
" \"very long help string\">;\n");
}
+TEST_F(FormatTestTableGen, NoSpacesInSquareBracketLists) {
+ verifyFormat("def flag : Flag<[\"-\", \"--\"], \"foo\">;\n");
+}
+
} // namespace format
} // end namespace clang
OpenPOWER on IntegriCloud