2 /* { dg-do compile } */
3 /* { dg-options "-Wreturn-type" } */
6 const A a() {} /* { dg-warning "no return statement" } */
7 const A& b() {} /* { dg-warning "no return statement" } */
9 const int c() {} /* { dg-warning "no return statement" } */
12 const int foo(T t) {} /* { dg-warning "no return statement" } */
13 int d = foo<int>(0), e = foo<int>(1);