Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / deprecated-4.C
blobe2f1a2c33cafcc5c8bd95ee6be8a35c114736831
1 // PR c++/15269
3 struct B { 
4     virtual int foo() __attribute__((deprecated)); 
5 }; 
6  
7 int main(void) { 
8   ((B*)0)->foo();               // { dg-warning "deprecated" }
9