2 // GROUPS passed virtual-tables
3 // Check that virtual function tables are generated and used
4 // even for struct's/classes which have no explicit constructors.
6 extern "C" int printf (const char *, ...);
8 int base_func_member_1_called = 0;
9 int derived_func_member_1_called = 0;
12 virtual void func_member_1 ()
14 base_func_member_1_called++;
18 struct derived : public base {
19 virtual void func_member_1 ()
21 derived_func_member_1_called++;
24 virtual void func_member_2 ()
37 bp1->func_member_1 ();
38 bp2->func_member_1 ();