summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/fntmpdefarg2.C
blob: 12cc83659c59f126f309ee026c64756da289c858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/46831
// { dg-options -std=c++0x }

struct B { };
struct D : B { };
struct A {
  template<typename T = void> operator D&();
  operator long();
};

void f(long);
void f(B&);

int main() { f(A()); }