Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);