blob: 9c07d7186ec7cadbf3dfc9949831e88b26fe7c62 [file] [log] [blame]
// PR c++/96182
// { dg-do compile { target c++11 } }
constexpr int foo () {} // { dg-error "no return statement in 'constexpr' function returning non-void" "" { target c++14 } }
// { dg-error "body of 'constexpr' function 'constexpr int foo\\\(\\\)' not a return-statement" "" { target c++11_only } .-1 }
// { dg-warning "no return statement in function returning non-void" "" { target c++11_only } .-2 }