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

14 lines
189 B
C

// { dg-do assemble }
// Origin: Jason Merrill <jason@redhat.com>
struct A
{
A ();
explicit A (int);
};
int main ()
{
const A& r = 1; // { dg-error "" } no suitable constructor
}