OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c/11446
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pack-test-5.c
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
}