1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 struct A { 4 virtual void f(int a = 7); 5 }; 6 7 struct B : public A { 8 void f(int a); // expected-note{{'f' declared here}} 9 }; 10 11 void m() { 12 B* pb = new B; 13 A* pa = pb; 14 pa->f(); // OK, calls pa->B::f(7) 15 pb->f(); // expected-error{{too few arguments}} 16 } 17