blob: e2f1a2c33cafcc5c8bd95ee6be8a35c114736831 [file] [log] [blame]
// PR c++/15269
struct B {
virtual int foo() __attribute__((deprecated));
};
int main(void) {
((B*)0)->foo(); // { dg-warning "deprecated" }
}