Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / constexpr-return2.C
blobd330ccfed3e66ada57a25ad512ca53fc97a85e0e
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" }