13 lines
336 B
C++
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();
|
|
}
|