2 // GROUPS passed overloading
3 // Check that calls to the correct overloaded virtual
4 // functions are generated even where the type of the formal
5 // arguments for the overloadings are similar or related.
7 extern "C" int printf (const char *, ...);
9 int proper_method_called = 0;
13 virtual void method (char)
16 virtual void method (char *)
21 struct derived : public base {
23 virtual void method (char)
26 virtual void method (char *)
28 proper_method_called++;
36 derived derived_object;
38 derived_object.method (message);
40 if (proper_method_called != 1)
41 { printf ("FAIL\n"); return 1; }