Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
alignas7.C
blob: a209250af9b7cb568e361871e9b5f43b87625948 [
file
] [
log
] [
blame
]
// PR c++/71513
// { dg-do compile { target c++11 } }
template
<
int
N
,
typename
T
>
struct
A
{
enum
alignas
(
N
)
E
:
T
;
};
#define
SA
(
X
)
static_assert
((
X
),
#X)
constexpr
int
al
=
alignof
(
double
);
SA
(
alignof
(
A
<
al
,
char
>::
E
)
==
al
);