OSDN Git Service

PR c++/34180
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / init / synth2.C
1 // PR c++/34180
2
3 struct G {
4   G();                          // { dg-message "" "candidate" }
5   G(G&);                        // { dg-message "" "candidate" }
6 };
7
8 class A
9 {                               // { dg-error "no match" }
10   const G g;
11 };
12
13 int main()
14 {
15   A a;
16   A b = a;                      // { dg-message "required here" }
17 }