libstdc++-v3/testsuite/23_containers/unordered_map/115420.cc
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | |
| 3 | #include <unordered_map> |
| 4 | |
| 5 | struct S { }; |
| 6 | |
| 7 | void |
| 8 | test_pr115420() |
| 9 | { |
| 10 | std::unordered_map<S, int> m; // { dg-error "here" } |
| 11 | } |
| 12 | |
| 13 | // { dg-error "hash function must be copy constructible" "" { target *-*-* } 0 } |
| 14 | // { dg-prune-output "use of deleted function" } |
| 15 | // { dg-prune-output "is private" } |
| 16 | // { dg-prune-output "no matching function" } |