../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C: In function ‘void test_1(void*)’:
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C:8:19: warning: use of old-style cast to ‘foo*’ [-Wold-style-cast]
   foo *f = (foo *)ptr; // { dg-warning "old-style cast" }                                                                    
                   ^~~                                                                                                        
            ----------                                                                                                        
            static_cast<foo *> (ptr)                                                                                          
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C: In function ‘void test_2(const foo*)’:                          
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C:19:19: warning: use of old-style cast to ‘foo*’ [-Wold-style-cast]
   foo *f = (foo *)ptr; // { dg-warning "old-style cast" }                                                                     
                   ^~~                                                                                                         
            ----------                                                                                                         
            const_cast<foo *> (ptr)                                                                                            
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C: In function ‘void test_3(bar*)’:                                 
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C:30:19: warning: use of old-style cast to ‘foo*’ [-Wold-style-cast]
   foo *f = (foo *)ptr; // { dg-warning "old-style cast" }                                                                     
                   ^~~                                                                                                         
            ----------                                                                                                         
            reinterpret_cast<foo *> (ptr)                                                                                      
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C: In function ‘void test_4(bar*)’:                                 
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C:41:24: warning: use of old-style cast to ‘foo*’ [-Wold-style-cast]
   foo *f = (foo *)ptr->field; // { dg-warning "old-style cast" }                                                              
                        ^~~~~                                                                                                  
            -----------------                                                                                                  
            const_cast<foo *> (ptr->field)                                                                                     
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C: In function ‘void test_5()’:                                     
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C:53:20: warning: use of old-style cast to ‘foo*’ [-Wold-style-cast]
   foo *f = (foo *)&b_inst; // { dg-warning "old-style cast" }                                                                 
                    ^~~~~~                                                                                                     
            --------------                                                                                                     
            reinterpret_cast<foo *> (&b_inst)                                                                                  
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C: In function ‘void test_6(void*)’:                                
../../src/gcc/testsuite/g++.dg/other/old-style-cast-fixits.C:65:19: warning: use of old-style cast to ‘foo*’ [-Wold-style-cast]
   foo *f = (foo *)ptr; // { dg-warning "old-style cast" }                                                                     
                   ^~~