1 // PR middle-end/16558 2 // { dg-options "-Wreturn-type" } 3 4 struct C 5 { 6 C (); 7 ~C (); 8 }; 9 getref(int ndx)10 int getref (int ndx) 11 { 12 C d; 13 14 if (ndx != 0) { 15 C base; 16 return 0; 17 } 18 else 19 return 0; 20 } 21