summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp
diff options
context:
space:
mode:
authorBilly Robert O'Neal III <bion@microsoft.com>2017-11-15 07:45:07 +0000
committerBilly Robert O'Neal III <bion@microsoft.com>2017-11-15 07:45:07 +0000
commit1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f (patch)
tree2caff257dfc12ccf3f21c8e570b1e8b2c525bc1f /libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp
parent83252766f906799d68a46af39687d7a60fa8530a (diff)
downloadbcm5719-llvm-1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f.tar.gz
bcm5719-llvm-1c240a89ffa0d7ca0afab6e36c8f8a58ec73e52f.zip
Tolerate even more [[nodiscard]] in the STL. Reviewed as https://reviews.llvm.org/D39080
llvm-svn: 318277
Diffstat (limited to 'libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp')
-rw-r--r--libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp b/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp
index 4ad7a3ac285..0f5f5591f91 100644
--- a/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp
+++ b/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/try_lock.pass.cpp
@@ -102,7 +102,7 @@ int main()
L2 l1;
try
{
- std::try_lock(l0, l1);
+ (void)std::try_lock(l0, l1);
assert(false);
}
catch (int)
@@ -116,7 +116,7 @@ int main()
L0 l1;
try
{
- std::try_lock(l0, l1);
+ (void)std::try_lock(l0, l1);
assert(false);
}
catch (int)
@@ -152,7 +152,7 @@ int main()
L2 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -206,7 +206,7 @@ int main()
L2 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -222,7 +222,7 @@ int main()
L0 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -238,7 +238,7 @@ int main()
L0 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -301,7 +301,7 @@ int main()
L1 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -317,7 +317,7 @@ int main()
L0 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -333,7 +333,7 @@ int main()
L2 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -349,7 +349,7 @@ int main()
L2 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -365,7 +365,7 @@ int main()
L1 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -381,7 +381,7 @@ int main()
L2 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -406,7 +406,7 @@ int main()
L1 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -440,7 +440,7 @@ int main()
L1 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
@@ -456,7 +456,7 @@ int main()
L0 l2;
try
{
- std::try_lock(l0, l1, l2);
+ (void)std::try_lock(l0, l1, l2);
assert(false);
}
catch (int)
OpenPOWER on IntegriCloud