1 // RUN: %clang_cc1 -fsyntax-only -Wundefined-internal -verify %s
4 struct S
{ virtual void f(); };
5 // expected-warning@-1{{function 'test1()::S::f' has internal linkage but is not defined}}
7 // expected-note@-1{{used here}}
12 struct S
{ virtual void f(); };
13 // expected-warning@-1{{function 'test2()::S::f' has internal linkage but is not defined}}
15 // expected-note@-1{{used here}}