Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-02-06 01:32:08 +0300
committerJordan Maples [MSFT] <49793787+JordanMaples@users.noreply.github.com>2020-02-06 01:32:08 +0300
commit7fcc142ffc9c73c891ca96ff3d84c17a03e6d230 (patch)
treebb246c50a4bbebb7ad32933638419afec66d24f3 /tests
parent432be4852c4cd3807e26f90904e3a4cb397fee3a (diff)
addressing travis errors
Diffstat (limited to 'tests')
-rw-r--r--tests/span_tests.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/span_tests.cpp b/tests/span_tests.cpp
index 9dbfb42..c1dbbef 100644
--- a/tests/span_tests.cpp
+++ b/tests/span_tests.cpp
@@ -1102,8 +1102,13 @@ TEST(span_test, from_array_constructor)
{
span<int> s = a;
span<int> s2 = b;
- EXPECT_DEATH(bool _ = (s.begin() == s2.begin()), deathstring);
- EXPECT_DEATH(bool _ = (s.begin() <= s2.begin()), deathstring);
+#if (__cplusplus > 201402L)
+ EXPECT_DEATH([[maybe_unused]] s.begin() == s2.begin(), deathstring);
+ EXPECT_DEATH([[maybe_unused]] s.begin() <= s2.begin(), deathstring);
+#else
+ EXPECT_DEATH(s.begin() == s2.begin(), deathstring);
+ EXPECT_DEATH(s.begin() <= s2.begin(), deathstring);
+#endif
}
}