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
Fix PR 17408 and PR 17409.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040308-1.c
1
/* This used to fail on SPARC with an unaligned memory access. */
2
3
void foo(int n)
4
{
5
struct S {
6
int i[n];
7
unsigned int b:1;
8
int i2;
9
} __attribute__ ((packed)) __attribute__ ((aligned (4)));
10
11
struct S s;
12
13
s.i2 = 0;
14
}
15
16
int main(void)
17
{
18
foo(4);
19
20
return 0;
21
}