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
Merge tree-ssa-20020619-branch into mainline.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
align-1.c
1
/* PR java/10145
2
Test that requesting an alignment of 1 does not increase the alignment
3
of a long long field.
4
5
{ dg-do run }
6
{ dg-options "" }
7
*/
8
9
struct A
10
{
11
char c;
12
long long i;
13
};
14
15
struct B
16
{
17
char c;
18
long long i __attribute ((__aligned__ (1)));
19
};
20
21
int main ()
22
{
23
if (sizeof (struct A) != sizeof (struct B))
24
abort ();
25
return 0;
26
}