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
testsuite: fix dg-require-* order vs dg-additional-sources
[official-gcc.git]
/
libphobos
/
testsuite
/
libphobos.typeinfo
/
struct-align.d
blob
54eaaa6ff5aed94132bdf83617ece4257e19e1c4
1
module
structalign
;
2
3
void
main
()
4
{
5
struct
K
{
int
*
a
; }
6
K k
;
7
auto
ti
=
typeid
(
k
);
8
9
assert
(
ti
.
flags
() ==
1
);
10
11
auto
ti2
=
typeid
(
k
.
a
);
12
assert
(
ti
.
talign
() ==
ti2
.
talign
());
13
}