summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/conversion/ambig1.C
blob: 85ea1d25f9e9ed20440e966ee203786c968eb522 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/19787

struct H {
  operator char(); // { dg-message "note" }
  operator short(); // { dg-message "note" }
};

int const& ref = H(); // { dg-error "ambiguous" }
// { dg-message "candidate" "candidate note" { target *-*-* } 8 }