summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/error20.C
blob: f3b17aa196a36640947f7ee1ec93a4992173862a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/34275
// { dg-do compile }

struct A			// { dg-message "operator=|no known conversion" }
{
  virtual A foo ();
};

void bar (A& a)
{
  a.foo () = 0; // { dg-error "A::foo\\(\\) = 0" }
  // { dg-message "candidate" "candidate note" { target *-*-* } 11 }
}