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
index.html (3.10): Add note about mips atomicity.h.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
align-1.c
blob
302d7d777a1f7bf1ac022f6f3ab88171649054bc
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
}