summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.benjamin/15800-1.C
blob: 4f6d878e88548dcd302461302714daa97ed47372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// 981203 bkoz
// g++/15800  - test

struct panama {
  panama();
  panama(panama &);
  panama& operator=(panama&); // { dg-message "operator=|no known conversion" }
};

extern panama dig();

void foo() {
   panama obj;
   obj = dig(); // { dg-error "no match" }
   // { dg-message "candidate" "candidate note" { target *-*-* } 15 }
}