diff options
author | Tushar Maheshwari <tushar27192@gmail.com> | 2021-05-13 20:52:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 20:52:09 +0300 |
commit | c1cbb41b428f15e53454682a45f03ea31f1da0a7 (patch) | |
tree | 8f696b9af923ef446fcf30b060302109a3d509d2 /tests/notnull_tests.cpp | |
parent | ef0ffefe525a6219ff245d19a832ce06f3fd3504 (diff) |
Fix iPhone simulator CI (#981)
* Run iOS simulator CI
* Fix link errors
- scope function linkage using anonymous namespace
* Update noexcept test for consistency
Diffstat (limited to 'tests/notnull_tests.cpp')
-rw-r--r-- | tests/notnull_tests.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/notnull_tests.cpp b/tests/notnull_tests.cpp index b95bb01..d4258e8 100644 --- a/tests/notnull_tests.cpp +++ b/tests/notnull_tests.cpp @@ -29,8 +29,8 @@ using namespace gsl; namespace { -static constexpr char deathstring[] = "Expected Death"; -} //namespace +constexpr char deathstring[] = "Expected Death"; +} // namespace struct MyBase { @@ -118,12 +118,15 @@ struct NonCopyableNonMovable NonCopyableNonMovable& operator=(NonCopyableNonMovable&&) = delete; }; +namespace +{ GSL_SUPPRESS(f.4) // NO-FORMAT: attribute bool helper(not_null<int*> p) { return *p == 12; } GSL_SUPPRESS(f.4) // NO-FORMAT: attribute bool helper_const(not_null<const int*> p) { return *p == 12; } int* return_pointer() { return nullptr; } +} // namespace TEST(notnull_tests, TestNotNullConstructors) { |