Skip to content

Commit 924032c

Browse files
committed
[NFC][hwasan] Check _GLIBCXX_RELEASE in test
Differential Revision: https://reviews.llvm.org/D119161
1 parent af26d68 commit 924032c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/test/hwasan/TestCases/new-test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818
assert(__sanitizer_get_allocated_size(a1) == 0);
1919
delete[] a1;
2020

21-
#ifdef __cpp_aligned_new
21+
#if defined(__cpp_aligned_new) && (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE >= 7)
2222
// Aligned new/delete
2323
constexpr auto kAlign = std::align_val_t{8};
2424
void *a2 = ::operator new(4, kAlign);

0 commit comments

Comments
 (0)