summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-04 16:10:36 +0000
committerDaniel Jasper <djasper@google.com>2016-01-04 16:10:36 +0000
commit5e27146df780271143355b82ab05fb8baac88b95 (patch)
treea5db1e47f7067abc05124ba0c503dc2e5fd70e2c /clang/unittests/Format/FormatTestJS.cpp
parentb14f6675dadcf8c85fa188d01270be89cc1457ec (diff)
downloadbcm5719-llvm-5e27146df780271143355b82ab05fb8baac88b95.tar.gz
bcm5719-llvm-5e27146df780271143355b82ab05fb8baac88b95.zip
clang-format: [JS] Support more ES6 default exports.
llvm-svn: 256759
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 0013e83ddd6..2f67bdf549c 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -870,6 +870,7 @@ TEST_F(FormatTestJS, Modules) {
" bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\n"
"];");
verifyFormat("export default [];");
+ verifyFormat("export default () => {};");
}
TEST_F(FormatTestJS, TemplateStrings) {
OpenPOWER on IntegriCloud