blob: fc861ee2442471a9334e8511c07d3ccf6af41840 [file] [log] [blame]
// PR c++/65974
// { dg-options "-Wdeprecated" }
struct S {
void bar();
__attribute__((deprecated("use bar() instead.")))
virtual void foo();
};
void S::foo() { bar(); }
int main()
{
return 0;
}