Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test20909.d
blob: 743c979ba19fd6634e72f2387a3d953c1e09b11a [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=20909
struct
S
{
long
a
;
static
assert
(
x
.
sizeof
==
4
);
enum
offset
=
x
.
offsetof
;
static
assert
(
offset
==
8
);
// OK now
int
x
;
}