summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/deprecated-4.C
blob: e2f1a2c33cafcc5c8bd95ee6be8a35c114736831 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/15269

struct B { 
    virtual int foo() __attribute__((deprecated)); 
}; 
 
int main(void) { 
  ((B*)0)->foo(); 		// { dg-warning "deprecated" }
}