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/divides.pass.cpp b/libcxx/test/utilities/function.objects/arithmetic.operations/divides.pass.cpp index 5eeba18..74298f2 100644 --- a/libcxx/test/utilities/function.objects/arithmetic.operations/divides.pass.cpp +++ b/libcxx/test/utilities/function.objects/arithmetic.operations/divides.pass.cpp
@@ -27,5 +27,11 @@ assert(f2(36, 4) == 9); assert(f2(36.0, 4) == 9); assert(f2(18, 4.0) == 4.5); // exact in binary + + constexpr int foo = std::divides<int> () (3, 2); + static_assert ( foo == 1, "" ); + + constexpr int bar = std::divides<> () (3.0, 2); + static_assert ( bar == 1, "" ); #endif }