| 139 | #pragma GCC diagnostic pop |
| 140 | |
| 141 | TEST(AlignedMallocDeathTest, AlignedFreeHandlesNullptr) { |
| 142 | ASSERT_EXIT( |
| 143 | { |
| 144 | alignedFree(nullptr); |
| 145 | exit(0); |
| 146 | }, |
| 147 | ::testing::ExitedWithCode(0), ""); |
| 148 | ASSERT_EXIT( |
| 149 | { |
| 150 | alignedFreeConstPtr(nullptr); |
| 151 | exit(0); |
| 152 | }, |
| 153 | ::testing::ExitedWithCode(0), ""); |
| 154 | } |
| 155 | |
| 156 | TYPED_TEST(AlignedMallocTest, TemplateTest) { |
| 157 | ASSERT_NO_THROW({ |
nothing calls this directly
no test coverage detected