| 1 |
// PR c++/85215 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
|
| 4 |
template <typename _Tp> struct vector { |
| 5 |
vector(vector &&) noexcept; |
| 6 |
}; |
| 7 |
|
| 8 |
template <typename T> struct any_container { |
| 9 |
operator vector<T> &&(); |
| 10 |
}; |
| 11 |
|
| 12 |
void f (any_container<int> c) |
| 13 |
{ |
| 14 |
vector<int> shape (c); |
| 15 |
} |