We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af26d68 commit 924032cCopy full SHA for 924032c
compiler-rt/test/hwasan/TestCases/new-test.cpp
@@ -18,7 +18,7 @@ int main() {
18
assert(__sanitizer_get_allocated_size(a1) == 0);
19
delete[] a1;
20
21
-#ifdef __cpp_aligned_new
+#if defined(__cpp_aligned_new) && (!defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE >= 7)
22
// Aligned new/delete
23
constexpr auto kAlign = std::align_val_t{8};
24
void *a2 = ::operator new(4, kAlign);
0 commit comments