1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// { dg-do link { target c++11 } } struct T {}; struct S { S(T const &) {} }; void f(const S&); void f(S&&) {} int main() { T t; f(t); }