Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/explicit1.C

raw
1 // { dg-do assemble }
2 // Origin: Jason Merrill <[email protected]>
3
4 struct A
5 {
6 A ();
7 explicit A (int);
8 };
9
10 int main ()
11 {
12 const A& r = 1; // { dg-error "" } no suitable constructor
13 }