summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/overload/conv-op1.C
blob: 6a63cbaeb87d629abab9aa9a0cf3da9aab1474fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/47703

typedef void (*pfn)(int &);

struct A
{
  operator pfn() { return 0; }
};

void f()
{
  const int i = 42;
  A()(i);			// { dg-message "<conversion>" }
}

// { dg-prune-output "no match" }
// { dg-prune-output "candidate" }