Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
;
}