Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
deprecated-9.C
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
;
}