Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
ext
/
align2.C
blob: da54bd9386b34148c522bd3afc117f2ef0329715 [
file
] [
log
] [
blame
]
// PR c++/10179
struct
__attribute
((
aligned
(
__alignof
(
double
))))
A
{
/* empty */
};
struct
T
:
public
A
{
char
c
;
};
template
<bool>
struct
StaticAssert
;
template
<>
struct
StaticAssert
<true>
{};
StaticAssert
<
__alignof
(
T
)
==
__alignof
(
double
)>
d
;