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
svn merge -r102224:107263 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pack-test-5.c
blob
e95030c089ea5a4b977fd87a333f8d986878b5d5
1
/* PR c/11446: packed on a struct takes precedence over aligned on the type
2
of a field. */
3
/* { dg-do run } */
4
5
struct
A
{
6
double
d
;
7
}
__attribute__
((
aligned
));
8
9
struct
B
{
10
char
c
;
11
struct
A a
;
12
}
__attribute__
((
packed
));
13
14
int
main
()
15
{
16
if
(
sizeof
(
struct
B
) !=
sizeof
(
char
) +
sizeof
(
struct
A
))
17
abort
();
18
return
0
;
19
}