commit | 83c08b4497cf93faffb34f41263adf09d9305102 | [log] [tgz] |
---|---|---|
author | Marshall Clow <mclow.lists@gmail.com> | Mon Jul 29 14:21:53 2013 +0000 |
committer | Marshall Clow <mclow.lists@gmail.com> | Mon Jul 29 14:21:53 2013 +0000 |
tree | 6828130ada15e4280f967777baea6e4a279c6e83 | |
parent | 7fdaee8f1520458a96fa47e58ef64ce164e16b8e [diff] [blame] |
Implement N3421; comparison predicates<void> llvm-svn: 187357
diff --git a/libcxx/test/utilities/function.objects/arithmetic.operations/negate.pass.cpp b/libcxx/test/utilities/function.objects/arithmetic.operations/negate.pass.cpp index 6c6957a..181c1fb 100644 --- a/libcxx/test/utilities/function.objects/arithmetic.operations/negate.pass.cpp +++ b/libcxx/test/utilities/function.objects/arithmetic.operations/negate.pass.cpp
@@ -21,4 +21,11 @@ const F f = F(); static_assert((std::is_base_of<std::unary_function<int, int>, F>::value), ""); assert(f(36) == -36); +#if _LIBCPP_STD_VER > 11 + typedef std::negate<> F2; + const F2 f2 = F2(); + assert(f2(36) == -36); + assert(f2(36L) == -36); + assert(f2(36.0) == -36); +#endif }