[libcxx-commits] [libcxx] [libcxx] Improve handling of DummyData blocks in libcxx tests (PR #88897)
Jack Styles via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Apr 24 07:57:39 PDT 2024
================
@@ -27,16 +27,28 @@
#include "test_macros.h"
#include "../types.h"
+class Data {
+public:
+ Data() = default;
+ ~Data() = default;
+
+ char* getDummyData() { return this->dummy_data_; }
+
+ std::size_t getDummyDataSize() { return sizeof(this->dummy_data_); }
+
+private:
+ alignas(OverAligned) char dummy_data_[alignof(OverAligned) * 3];
----------------
Stylie777 wrote:
I have removed the classes and reverted to the initial behaviour. Please see the initial comment as the changes made are different to those previously reviewed. Thanks
https://github.com/llvm/llvm-project/pull/88897
More information about the libcxx-commits
mailing list