Sign in
gnu
/
gcc
/
9af9e004831f8efdfb68c2affea07b17fadd3279
/
.
/
libphobos
/
testsuite
/
libphobos.typeinfo
/
struct-align.d
blob: 72866517481ddfd9e66801885422b82b2c95ec00 [
file
]
module
structalign
;
void
main
()
{
struct
K
{
int
*
a
;
};
K k
;
auto
ti
=
typeid
(
k
);
assert
(
ti
.
flags
()
==
1
);
auto
ti2
=
typeid
(
k
.
a
);
assert
(
ti
.
talign
()
==
ti2
.
talign
());
}