4 extern "C" void abort();
9 ~A() { if (!ok) abort(); }
13 static A foo() { return A(); }
19 B* operator->() const { return &b_g; }
20 B* get() const { return &b_g; }
23 B *get() { return &b_g; }
28 const A& ref1 = f->foo();
29 const A& ref2 = f.get()->foo();
30 const A& ref3 = get()->foo();
31 const A& ref4 = B::foo();
33 const A& ref5 = pf->foo();