(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
deprecated-9.C
// 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;
}