mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-12 02:47:10 +00:00
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:
parent
d6a46aff59
commit
7d8274d54d
@ -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**) {
|
||||
|
@ -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**) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user