test: squelch -Wreturn-type error

Add an unreachable marker to avoid a -Wreturn-type error when building
on Windows.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@294901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Saleem Abdulrasool
2017-02-12 17:37:44 +00:00
parent 430800ddb8
commit 0849d28af1

View File

@@ -414,7 +414,14 @@ void throws_in_constructor_test()
throw 42;
}
ThrowsOnCopy() = default;
bool operator()() const { assert(false); }
bool operator()() const {
assert(false);
#if defined(_LIBCPP_MSVC)
__assume(0);
#else
__builtin_unreachable();
#endif
}
};
{
ThrowsOnCopy cp;