8sa1-gcc/gcc/testsuite/g++.old-deja/g++.other/explicit1.C
Jason Merrill d2474533e1 new
From-SVN: r34289
2000-05-31 04:14:17 -04:00

13 lines
158 B
C

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