repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test20909.d
blob
743c979ba19fd6634e72f2387a3d953c1e09b11a
1
// https://issues.dlang.org/show_bug.cgi?id=20909
2
3
struct
S
4
{
5
long
a
;
6
static assert
(
x
.
sizeof
==
4
);
7
enum
offset
=
x
.
offsetof
;
8
static assert
(
offset
==
8
);
// OK now
9
int
x
;
10
}