summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/conv11.C
blob: 57d06af3ee75ed89115a1d5e567b06ed83f116e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
int i;
struct A
{
  template <class T> operator T&() { return i; } // { dg-message "note" }
};

int main()
{
  A().operator int();		// { dg-error "operator int" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 9 }
}