summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/overload3.C
blob: 0eecabdecc757adb65bfdb0bb55a774dd6e8db50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/59823
// { dg-do compile { target c++11 } }

struct X { };

void f(X&&);

struct wrap
{
  operator const X&() const;
};

int main()
{
  wrap w;
  f(w);				// { dg-error "" }
}