diff options
Diffstat (limited to 'test/alignment.pass.cpp')
-rw-r--r-- | test/alignment.pass.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/alignment.pass.cpp b/test/alignment.pass.cpp new file mode 100644 index 0000000..5ab5584 --- /dev/null +++ b/test/alignment.pass.cpp @@ -0,0 +1,21 @@ +// -*- C++ -*- +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// The Itanium ABI requires that _Unwind_Exception objects are "double-word +// aligned". + +#include <unwind.h> + +struct MaxAligned {} __attribute__((aligned)); +static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned), ""); + +int main() +{ +} |