Fix a test that was failing in C++11 mode introduced in r303874

llvm-svn: 303878
This commit is contained in:
Erik Pilkington 2017-05-25 16:16:17 +00:00
parent 594d0d592d
commit 76886e82e5
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,5 @@
// UNSUPPORTED: c++98, c++03
#include <memory>
template <int> struct Tag {};
@ -21,7 +23,9 @@ struct Deleter {
void operator()(Tp) const {
using RawT = typename std::remove_pointer<Tp>::type;
static_assert(std::is_function<RawT>::value ||
std::is_null_pointer<RawT>::value, "");
std::is_same<typename std::remove_cv<RawT>::type,
std::nullptr_t>::value,
"");
}
};