aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 3fd795c..eadea35 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -2412,6 +2412,11 @@ TEST_F(FormatTestJS, CppKeywords) {
verifyFormat("using!;");
verifyFormat("virtual!;");
verifyFormat("wchar_t!;");
+
+ // Positive tests:
+ verifyFormat("x.type!;");
+ verifyFormat("x.get!;");
+ verifyFormat("x.set!;");
}
TEST_F(FormatTestJS, NullPropagatingOperator) {