aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/overload-conv-2.C
blob: b95994d7fc423d4378d13a4dc0a0ec534ac04d8b (plain)
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);
}