Debian Codegraph @

gcc/testsuite/g++.dg/init/synth2.C

raw
1 // PR c++/34180
2
3 struct G {
4 G();
5 G(G&); // { dg-message "" "candidate" }
6 };
7
8 class A // { dg-error "" }
9 {
10 const G g;
11 };
12
13 int main()
14 {
15 A a;
16 A b = a; // { dg-message "required here|deleted" }
17 }