summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/overload-conv-2.C
blob: 0e622bcacb25f6bc452ad497db3cdd56a482d1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-options "--std=c++0x" }
// { dg-do link }

struct T {};
struct S
{
  S(T const &) {}
};

void f(const S&);
void f(S&&) {}

int main()
{
  T t;
  f(t);
}