repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
pack-test-5.c
blob
7645043dd84f1ea62b9b5cd4005c9a0bec911ae4
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
extern
void
abort
(
void
);
6
7
struct
A
{
8
double
d
;
9
}
__attribute__
((
aligned
));
10
11
struct
B
{
12
char
c
;
13
struct
A a
;
14
}
__attribute__
((
packed
));
15
16
int
main
()
17
{
18
if
(
sizeof
(
struct
B
) !=
sizeof
(
char
) +
sizeof
(
struct
A
))
19
abort
();
20
return
0
;
21
}