Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
deprecated-4.C
blob: e2f1a2c33cafcc5c8bd95ee6be8a35c114736831 [
file
] [
log
] [
blame
]
// PR c++/15269
struct
B
{
virtual
int
foo
()
__attribute__
((
deprecated
));
};
int
main
(
void
)
{
((
B
*)
0
)->
foo
();
// { dg-warning "deprecated" }
}