summaryrefslogtreecommitdiffstats
path: root/libunwind/test/alignment.pass.cpp
blob: 5ab55842621b531ff2ab6cd7a6801ca0ab363d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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()
{
}
OpenPOWER on IntegriCloud