summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/function.objects/negators
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/negators')
-rw-r--r--libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp b/libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp
index 2aa4f0ab448..e2498a3b52e 100644
--- a/libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp
@@ -19,7 +19,8 @@ int main()
{
typedef std::unary_negate<std::logical_not<int> > F;
const F f = F(std::logical_not<int>());
- static_assert((std::is_base_of<std::unary_function<int, bool>, F>::value), "");
+ static_assert((std::is_same<F::argument_type, int>::value), "" );
+ static_assert((std::is_same<F::result_type, bool>::value), "" );
assert(f(36));
assert(!f(0));
}
OpenPOWER on IntegriCloud