Files
Renderive/tests/ASan_Runtime_Smoke.cpp
T
2026-07-30 18:09:03 +08:00

13 lines
336 B
C++

#include <memory>
#include <gtest/gtest.h>
TEST(ASan_Runtime_Smoke, AllocatesAndReadsArray) {
auto values = std::make_unique<int[]>(64);
for (int i = 0; i < 64; ++i)
values[i] = i;
EXPECT_EQ(values[63], 63);
}
int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}