3 // { dg-options "-Wreturn-type" }
5 struct C { C (); ~C (); };
8 f1 (int a, int b, int c)
31 } // { dg-warning "control reaches end of non-void function" }
34 f2 (int a, int b, int c, int d)
71 for (int e = 0; e < c; ++e)
82 } // { dg-warning "control reaches end of non-void function" }
86 f3 (int a, int b, int c)
109 } // { dg-warning "control reaches end of non-void function" }
113 f4 (int a, int b, int c, int d)
150 for (int e = 0; e < c; ++e)
161 } // { dg-warning "control reaches end of non-void function" }
164 f5 (int a, int b, int c)
166 return f3 <0> (a, b, c);
170 f6 (int a, int b, int c, int d)
172 return f4 <2> (a, b, c, d);