diff options
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 30a0b37ef69..619a19f1a22 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -2369,5 +2369,12 @@ TEST_F(FormatTestJS, SupportPrivateFieldsAndMethods) { " static #staticPrivateMethod() {}\n"); } +TEST_F(FormatTestJS, DeclaredFields) { + verifyFormat("class Example {\n" + " declare pub: string;\n" + " declare private priv: string;\n" + "}\n"); +} + } // namespace format } // end namespace clang |