summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test
diff options
context:
space:
mode:
authorErik Pilkington <erik.pilkington@gmail.com>2018-03-10 21:31:15 +0000
committerErik Pilkington <erik.pilkington@gmail.com>2018-03-10 21:31:15 +0000
commitb1a7f3c741a260df1c0e9e9f62518601f72ac2a7 (patch)
tree2a25f692c7e60a9d51222968d96039d55dd8283f /libcxxabi/test
parentd88204fe1bb1785dd14d06233308ac95d4de7906 (diff)
downloadbcm5719-llvm-b1a7f3c741a260df1c0e9e9f62518601f72ac2a7.tar.gz
bcm5719-llvm-b1a7f3c741a260df1c0e9e9f62518601f72ac2a7.zip
[demangler] Support for structured bindings.
llvm-svn: 327226
Diffstat (limited to 'libcxxabi/test')
-rw-r--r--libcxxabi/test/test_demangle.pass.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libcxxabi/test/test_demangle.pass.cpp b/libcxxabi/test/test_demangle.pass.cpp
index ef2821cc606..8e97a7fdf3b 100644
--- a/libcxxabi/test/test_demangle.pass.cpp
+++ b/libcxxabi/test/test_demangle.pass.cpp
@@ -29718,6 +29718,10 @@ const char* cases[][2] =
{"_Z1fSsB1XS_", "f(std::string[abi:X], std::string[abi:X])"},
{"___Z10blocksNRVOv_block_invoke", "invocation function for block in blocksNRVO()"},
+
+ // Structured bindings:
+ {"_ZDC2a12a2E", "'structured-binding'[a1, a2]"},
+ {"_ZN2NSDC1x1yEE", "NS::'structured-binding'[x, y]"},
};
const unsigned N = sizeof(cases) / sizeof(cases[0]);
@@ -29848,7 +29852,6 @@ void test_invalid_cases()
const char *xfail_cases[] = {
"_Z1fUa9enable_ifIXLi1EEEv", // enable_if attribute
- "_ZDC2a12a2E", // decomposition decl
"_ZW6FooBarE2f3v", // C++ modules TS
// FIXME: Why does clang generate the "cp" expr?
OpenPOWER on IntegriCloud