/cp
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-return2.C
blobcb0185414afedc332241cb206afd6c05f699f478
1 // { dg-do compile { target c++14 } }
2 // { dg-additional-options "-Wno-return-type" }
4 constexpr int f (int i)
8 constexpr int i = f(42);        // { dg-error "flows off the end|in .constexpr. expansion of " }