summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-10-25 20:12:16 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-10-25 20:12:16 +0000
commit3b72a6ef6343e073529fb7a70c30001af7bb40a7 (patch)
tree8dbf1805f33da9bd436edecc5ed3b8aa78a6bc53 /libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp
parentf04d89bdb4338500b445ab5c74d8d58dbd8bda50 (diff)
downloadbcm5719-llvm-3b72a6ef6343e073529fb7a70c30001af7bb40a7.tar.gz
bcm5719-llvm-3b72a6ef6343e073529fb7a70c30001af7bb40a7.zip
Fix LWG#2489: mem_fn() should be noexcept
llvm-svn: 251257
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp')
-rw-r--r--libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp b/libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp
index 4096bd81442..f371223ee84 100644
--- a/libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp
+++ b/libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp
@@ -69,4 +69,7 @@ int main()
test0(std::mem_fn(&A::test0));
test1(std::mem_fn(&A::test1));
test2(std::mem_fn(&A::test2));
+#if __has_feature(cxx_noexcept)
+ static_assert((noexcept(std::mem_fn(&A::test0))), ""); // LWG#2489
+#endif
}
OpenPOWER on IntegriCloud