From 3b72a6ef6343e073529fb7a70c30001af7bb40a7 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sun, 25 Oct 2015 20:12:16 +0000 Subject: Fix LWG#2489: mem_fn() should be noexcept llvm-svn: 251257 --- .../std/utilities/function.objects/func.memfn/member_function.pass.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libcxx/test/std/utilities/function.objects/func.memfn/member_function.pass.cpp') 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 } -- cgit v1.2.3