Fix iPhone simulator CI (#981)

* Run iOS simulator CI

* Fix link errors

- scope function linkage using anonymous namespace

* Update noexcept test for consistency
This commit is contained in:
Tushar Maheshwari
2021-05-13 10:52:09 -07:00
committed by GitHub
parent ef0ffefe52
commit c1cbb41b42
5 changed files with 47 additions and 56 deletions
+5 -2
View File
@@ -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)
{