5 virtual int get_foo () { return 1; }
6 int base_function_only () { return 2; }
9 class Foo
: public Base
16 Foo () { foo_value
= 0;}
17 Foo (int i
) { foo_value
= i
;}
19 void set_foo (int value
);
22 // Something similar to a constructor name.
25 bool operator== (const Foo
&other
) { return foo_value
== other
.foo_value
; }
28 void Foo::set_foo (int value
)
51 } /* namespace Nested */
53 } /* namespace Test_NS */
57 // Anonymous struct with method.
59 int get() { return 5; }
62 foo1
.set_foo (42); // Set breakpoint here.
63 a
.get(); // Prevent compiler from throwing 'a' away.