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/plus.pass.cpp b/libcxx/test/utilities/function.objects/arithmetic.operations/plus.pass.cpp index 4de23ff..44001a0 100644 --- a/libcxx/test/utilities/function.objects/arithmetic.operations/plus.pass.cpp +++ b/libcxx/test/utilities/function.objects/arithmetic.operations/plus.pass.cpp
@@ -27,5 +27,11 @@ assert(f2(3,2) == 5); assert(f2(3.0, 2) == 5); assert(f2(3, 2.5) == 5.5); + + constexpr int foo = std::plus<int> () (3, 2); + static_assert ( foo == 5, "" ); + + constexpr int bar = std::plus<> () (3.0, 2); + static_assert ( bar == 5, "" ); #endif }