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
* gcc.dg/pr31344.c: Move to ...
[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
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
}