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
2009-07-17 Richard Guenther <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
stackalign
/
global-1.c
blob
284daad0eafe59f7b4f67a33f7a72bf39784bd99
1
/* { dg-do run } */
2
3
#include
"check.h"
4
5
#ifndef ALIGNMENT
6
#define ALIGNMENT 64
7
#endif
8
9
typedef
int
aligned
__attribute__
((
aligned
(
ALIGNMENT
)));
10
11
int
global
;
12
13
void
14
foo
(
void
)
15
{
16
aligned i
;
17
18
if
(
check_int
(&
i
,
__alignof__
(
i
)) !=
i
)
19
abort
();
20
}
21
22
int
23
main
()
24
{
25
foo
();
26
return
0
;
27
}