blob: 5ab55842621b531ff2ab6cd7a6801ca0ab363d9a [file] [log] [blame]
Eric Fiselier9ac4c9c2016-07-20 23:56:42 +00001// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
10
11// The Itanium ABI requires that _Unwind_Exception objects are "double-word
12// aligned".
13
14#include <unwind.h>
15
16struct MaxAligned {} __attribute__((aligned));
17static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned), "");
18
19int main()
20{
21}