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
This commit is contained in:
Marshall Clow 2019-06-27 15:37:31 +00:00
parent d6a46aff59
commit 7d8274d54d
2 changed files with 2 additions and 2 deletions

View File

@ -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**) {

View File

@ -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**) {