Skip to content

Commit

Permalink
Utility: ancient GCC, you too?
Browse files Browse the repository at this point in the history
  • Loading branch information
mosra committed Mar 22, 2021
1 parent e583e62 commit 28f6249
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Corrade/Utility/Test/MemoryTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ MemoryTest::MemoryTest() {
&MemoryTest::allocateAlignedTrivial<16>,
&MemoryTest::allocateAlignedTrivial<32>,
&MemoryTest::allocateAlignedTrivial<64>,
&MemoryTest::allocateAlignedTrivial<128>,
&MemoryTest::allocateAlignedTrivial<256>}, 100);
&MemoryTest::allocateAlignedTrivial<128>}, 100);

/* https://stackoverflow.com/q/48070361. I found nothing that would give
me the max allowed alignas value, std::max_align_t is useless. */
#if !defined(CORRADE_TARGET_GCC) || defined(CORRADE_TARGET_CLANG) || __GNUC__ >= 7
addRepeatedTests<MemoryTest>({&MemoryTest::allocateAlignedTrivial<256>}, 100);
#endif

addTests({&MemoryTest::allocateAlignedTrivialNoInit,
&MemoryTest::allocateAlignedTrivialDefaultInit,
Expand Down

0 comments on commit 28f6249

Please sign in to comment.