diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-06-22 00:58:06 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-06-22 00:58:06 +0000 |
commit | c1d08ff06924ad8de27661372029d10ca845ad40 (patch) | |
tree | dfed452e5f17b67c7c69c241174bbeb6fd91d47f | |
parent | 91227f2195ba6bbdcfee1e65bcc62d68f3e1b848 (diff) | |
download | bcm5719-llvm-c1d08ff06924ad8de27661372029d10ca845ad40.tar.gz bcm5719-llvm-c1d08ff06924ad8de27661372029d10ca845ad40.zip |
Suppress unused warnings in std::invoke tests.
llvm-svn: 273348
-rw-r--r-- | libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp b/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp index e78323f5ae8..89867a566e0 100644 --- a/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp +++ b/libcxx/test/std/utilities/function.objects/func.invoke/invoke.pass.cpp @@ -325,18 +325,18 @@ struct MemberObj { void noexcept_test() { { - NoThrowCallable obj; - CopyThrows arg; + NoThrowCallable obj; ((void)obj); // suppress unused warning + CopyThrows arg; ((void)arg); // suppress unused warning static_assert(noexcept(std::invoke(obj))); static_assert(!noexcept(std::invoke(obj, arg))); static_assert(noexcept(std::invoke(obj, std::move(arg)))); } { - ThrowsCallable obj; + ThrowsCallable obj; ((void)obj); // suppress unused warning static_assert(!noexcept(std::invoke(obj))); } { - MemberObj obj{42}; + MemberObj obj{42}; ((void)obj); // suppress unused warning. static_assert(noexcept(std::invoke(&MemberObj::x, obj))); } } |