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/modulus.pass.cpp b/libcxx/test/utilities/function.objects/arithmetic.operations/modulus.pass.cpp index 421f945..3c17881 100644 --- a/libcxx/test/utilities/function.objects/arithmetic.operations/modulus.pass.cpp +++ b/libcxx/test/utilities/function.objects/arithmetic.operations/modulus.pass.cpp
@@ -27,5 +27,11 @@ assert(f2(36, 8) == 4); assert(f2(36L, 8) == 4); assert(f2(36, 8L) == 4); + + constexpr int foo = std::modulus<int> () (3, 2); + static_assert ( foo == 1, "" ); + + constexpr int bar = std::modulus<> () (3L, 2); + static_assert ( bar == 1, "" ); #endif }