summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2019-06-27 15:37:31 +0000
committerMarshall Clow <mclow.lists@gmail.com>2019-06-27 15:37:31 +0000
commit7d8274d54d0305b827e87adae4619abd6433043c (patch)
treeb446c2929f170de679963c95632e4bc58489da18 /libcxx/test/std
parentd6a46aff59134d54ab5e81d93dcf337734568884 (diff)
downloadbcm5719-llvm-7d8274d54d0305b827e87adae4619abd6433043c.tar.gz
bcm5719-llvm-7d8274d54d0305b827e87adae4619abd6433043c.zip
Followup to revision 364545: Turns out that clang issues different errors for C++11 vs c++2a, so I tweaked the 'expected-error' bits that I added to match either of them.
llvm-svn: 364554
Diffstat (limited to 'libcxx/test/std')
-rw-r--r--libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp2
-rw-r--r--libcxx/test/std/strings/string.view/string.view.hash/char_type.hash.fail.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp b/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp
index 7857ac7e363..c4fb8cad1c6 100644
--- a/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp
+++ b/libcxx/test/std/strings/basic.string.hash/char_type_hash.fail.cpp
@@ -53,7 +53,7 @@ template <class CharT>
void test() {
typedef std::basic_string<CharT, trait<CharT> > str_t;
std::hash<str_t>
- h; // expected-error-re 4 {{call to implicitly-deleted default constructor of 'std::hash<str_t>' {{.+}}}}}
+ h; // expected-error-re 4 {{{{call to implicitly-deleted default constructor of 'std::hash<str_t>'|implicit instantiation of undefined template}} {{.+}}}}}}
}
int main(int, char**) {
diff --git a/libcxx/test/std/strings/string.view/string.view.hash/char_type.hash.fail.cpp b/libcxx/test/std/strings/string.view/string.view.hash/char_type.hash.fail.cpp
index 587c989a8ed..80066cb41c2 100644
--- a/libcxx/test/std/strings/string.view/string.view.hash/char_type.hash.fail.cpp
+++ b/libcxx/test/std/strings/string.view/string.view.hash/char_type.hash.fail.cpp
@@ -54,7 +54,7 @@ template <class CharT>
void test() {
typedef std::basic_string_view<CharT, trait<CharT> > strv_t;
std::hash<strv_t>
- h; // expected-error-re 4 {{call to implicitly-deleted default constructor of 'std::hash<strv_t>' {{.+}}}}}}
+ h; // expected-error-re 4 {{{{call to implicitly-deleted default constructor of 'std::hash<strv_t>'|implicit instantiation of undefined template}} {{.+}}}}}}
}
int main(int, char**) {
OpenPOWER on IntegriCloud