diff options
Diffstat (limited to 'libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc')
-rw-r--r-- | libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc b/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc index a06c302ad6b..305a38999f0 100644 --- a/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc +++ b/libstdc++-v3/testsuite/23_containers/unordered_multiset/48101_neg.cc @@ -24,10 +24,12 @@ test01() { using namespace std; unordered_multiset<const int, hash<int>> c; // { dg-error "here" } - unordered_multiset<int, equal_to<int>, hash<int>> c2; // { dg-error "here" } + unordered_multiset<int, equal_to<int>, hash<int>> c2; + c2.find(2); // { dg-error "here" } } // { dg-error "non-const, non-volatile value_type" "" { target *-*-* } 0 } // { dg-error "hash function must be invocable" "" { target *-*-* } 0 } // { dg-error "key equality predicate must be invocable" "" { target *-*-* } 0 } // { dg-prune-output "use of deleted function" } +// { dg-prune-output "no match for call" } |