summaryrefslogtreecommitdiff
path: root/test/test_byte_reverse.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-04-30 14:28:25 +0200
committerMax Kellermann <max@duempel.org>2016-04-30 14:28:25 +0200
commit3fb8f3ec952d1e798e5592b84752dbeebecd660d (patch)
tree2fc8524c6d8d6e865138776a427b02ebbcf9d8be /test/test_byte_reverse.cxx
parentfc3e0dfcd1a41bec76cb05f937acdb0a818cfd53 (diff)
parent04ed50fb0f94877d8538822d20eaccf65ab40c14 (diff)
Merge tag 'v0.19.15'
release v0.19.15
Diffstat (limited to 'test/test_byte_reverse.cxx')
-rw-r--r--test/test_byte_reverse.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_byte_reverse.cxx b/test/test_byte_reverse.cxx
index 86d29c32d..ca4380fc8 100644
--- a/test/test_byte_reverse.cxx
+++ b/test/test_byte_reverse.cxx
@@ -49,9 +49,9 @@ CPPUNIT_TEST_SUITE_REGISTRATION(ByteReverseTest);
void
ByteReverseTest::TestByteReverse2()
{
- static const char src[] = "123456";
+ static const char src[] gcc_alignas(uint16_t, 2) = "123456";
static const char result[] = "214365";
- static uint8_t dest[ARRAY_SIZE(src)];
+ static uint8_t dest[ARRAY_SIZE(src)] gcc_alignas(uint16_t, 2);
reverse_bytes(dest, (const uint8_t *)src,
(const uint8_t *)(src + ARRAY_SIZE(src) - 1), 2);
@@ -73,9 +73,9 @@ ByteReverseTest::TestByteReverse3()
void
ByteReverseTest::TestByteReverse4()
{
- static const char src[] = "12345678";
+ static const char src[] gcc_alignas(uint32_t, 4) = "12345678";
static const char result[] = "43218765";
- static uint8_t dest[ARRAY_SIZE(src)];
+ static uint8_t dest[ARRAY_SIZE(src)] gcc_alignas(uint32_t, 4);
reverse_bytes(dest, (const uint8_t *)src,
(const uint8_t *)(src + ARRAY_SIZE(src) - 1), 4);