blob: 7f3a5776c42f4b8e6567b2da10050f3d155918ea [file] [log] [blame]
// { dg-do compile { target c++14 } }
// { dg-options "" }
template <class,class> struct Same;
template <class T> struct Same<T,T> {};
auto f()
{
if constexpr (sizeof(int)==3) // { dg-warning "constexpr" "" { target c++14_only } }
return 42;
else
return 42L;
}
Same<decltype(f()), long> s;