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
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2021-05-13 20:52:09 +0300
committerGitHub <noreply@github.com>2021-05-13 20:52:09 +0300
commitc1cbb41b428f15e53454682a45f03ea31f1da0a7 (patch)
tree8f696b9af923ef446fcf30b060302109a3d509d2 /tests/notnull_tests.cpp
parentef0ffefe525a6219ff245d19a832ce06f3fd3504 (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.cpp7
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)
{