]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/config/test/boost_no_cxx11_alignas.ipp
buildsys: switch source download to quincy
[ceph.git] / ceph / src / boost / libs / config / test / boost_no_cxx11_alignas.ipp
CommitLineData
7c673cae
FG
1// (C) Copyright Andrey Semashev 2013
2
3// Use, modification and distribution are subject to the
4// Boost Software License, Version 1.0. (See accompanying file
5// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7// See http://www.boost.org/libs/config for more information.
8
9// MACRO: BOOST_NO_CXX11_ALIGNAS
10// TITLE: C++11 alignas keyword.
11// DESCRIPTION: The compiler does not support the C++11 alignment specification with alignas keyword.
12
13namespace boost_no_cxx11_alignas {
14
15struct alignas(16) my_data1
16{
17 char data[10];
18};
19
20struct alignas(double) my_data2
21{
22 char data[16];
23};
24
25my_data1 dummy1[2];
26my_data2 dummy2;
27alignas(16) char dummy3[10];
28alignas(double) char dummy4[32];
29
30int test()
31{
32 // TODO: Test that the data is actually aligned on platforms with uintptr_t
33 return 0;
34}
35
36}