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

16 lines
216 B
C

// { dg-do assemble }
// Origin: Jason Merrill <jason@cygnus.com>
struct A {
int operator * ();
};
struct B : public A { };
int operator * (B &);
int main ()
{
B b;
B& br = b;
*br;
}