summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-05-02 19:15:48 +0000
committerEric Fiselier <eric@efcs.ca>2016-05-02 19:15:48 +0000
commitfb42f4c44adc1e2ac25c1305e77d53e735012b77 (patch)
tree1b7284c381b8626e94578527a76c00071d9f9bce /libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp
parent9d91336a839d291ea52e91401e9bd92f4dfc5b5a (diff)
downloadbcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.tar.gz
bcm5719-llvm-fb42f4c44adc1e2ac25c1305e77d53e735012b77.zip
Void cast runtime-unused variables. Patch from STL@microsoft.com
llvm-svn: 268284
Diffstat (limited to 'libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp')
-rw-r--r--libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp b/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp
index dc034ce099e..f5060305608 100644
--- a/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp
+++ b/libcxx/test/std/language.support/support.runtime/csetjmp.pass.cpp
@@ -19,6 +19,7 @@
int main()
{
std::jmp_buf jb;
+ ((void)jb); // Prevent unused warning
static_assert((std::is_same<decltype(std::longjmp(jb, 0)), void>::value),
"std::is_same<decltype(std::longjmp(jb, 0)), void>::value");
}
OpenPOWER on IntegriCloud