commit | 3d5134dd5262960fb8f7cf0a2291dde34e23d127 | [log] [tgz] |
---|---|---|
author | Marshall Clow <mclow.lists@gmail.com> | Sat Sep 28 19:06:12 2013 +0000 |
committer | Marshall Clow <mclow.lists@gmail.com> | Sat Sep 28 19:06:12 2013 +0000 |
tree | fb379023edaded98f1313348b752ce56b34cb838 | |
parent | 8392ab209e9c6fac9d5d3c8b70de396564458237 [diff] [blame] |
Implement n3789; constexpr support in named function objects llvm-svn: 191626
diff --git a/libcxx/test/utilities/function.objects/arithmetic.operations/multiplies.pass.cpp b/libcxx/test/utilities/function.objects/arithmetic.operations/multiplies.pass.cpp index 67bb5a5..97287e6 100644 --- a/libcxx/test/utilities/function.objects/arithmetic.operations/multiplies.pass.cpp +++ b/libcxx/test/utilities/function.objects/arithmetic.operations/multiplies.pass.cpp
@@ -27,5 +27,11 @@ assert(f2(3,2) == 6); assert(f2(3.0, 2) == 6); assert(f2(3, 2.5) == 7.5); // exact in binary + + constexpr int foo = std::multiplies<int> () (3, 2); + static_assert ( foo == 6, "" ); + + constexpr int bar = std::multiplies<> () (3.0, 2); + static_assert ( bar == 6, "" ); #endif }