2
0
mirror of https://github.com/boostorg/align.git synced 2026-01-27 18:42:07 +00:00
Files
align/test/assume_aligned_test.cpp
2015-07-29 00:37:36 -04:00

29 lines
590 B
C++

/*
(c) 2015 Glen Joseph Fernandes
glenjofe at gmail dot com
Distributed under the Boost Software
License, Version 1.0.
http://boost.org/LICENSE_1_0.txt
*/
#include <boost/align/assume_aligned.hpp>
void test(void* p = 0)
{
BOOST_ALIGN_ASSUME_ALIGNED(p, 1);
BOOST_ALIGN_ASSUME_ALIGNED(p, 2);
BOOST_ALIGN_ASSUME_ALIGNED(p, 4);
BOOST_ALIGN_ASSUME_ALIGNED(p, 8);
BOOST_ALIGN_ASSUME_ALIGNED(p, 16);
BOOST_ALIGN_ASSUME_ALIGNED(p, 32);
BOOST_ALIGN_ASSUME_ALIGNED(p, 64);
BOOST_ALIGN_ASSUME_ALIGNED(p, 128);
(void)p;
}
int main()
{
test();
return 0;
}