diff options
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index b491cd58659..9be375243c8 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -111,6 +111,8 @@ TEST_F(FormatTestJS, ReservedWords) { " interface: 1,\n" " switch: 1,\n" "};"); + verifyFormat("var struct = 2;"); + verifyFormat("var union = 2;"); } TEST_F(FormatTestJS, ES6DestructuringAssignment) { |