File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
string.view/string.view.hash Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ void test() {
57
57
typedef std::basic_string<CharT, trait<CharT> > str_t ;
58
58
std::hash<str_t >
59
59
h; // expected-error-re 4 {{{{call to implicitly-deleted default constructor of 'std::hash<str_t>'|implicit instantiation of undefined template}} {{.+}}}}}}
60
+ (void )h;
60
61
}
61
62
62
63
int main (int , char **) {
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ void test() {
58
58
typedef std::basic_string_view<CharT, trait<CharT> > strv_t ;
59
59
std::hash<strv_t >
60
60
h; // expected-error-re 4 {{{{call to implicitly-deleted default constructor of 'std::hash<strv_t>'|implicit instantiation of undefined template}} {{.+}}}}}}
61
+ (void )h;
61
62
}
62
63
63
64
int main (int , char **) {
You can’t perform that action at this time.
0 commit comments