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
/
nested-2.c
blob
d54e3b92c9f8598c4e319ae78ca0656fd9495a53
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 j
;
17
18
__attribute__
((
__noinline__
))
19
void
bar
()
20
{
21
aligned i
;
22
23
if
(
check_int
(&
i
,
__alignof__
(
i
)) !=
i
)
24
abort
();
25
26
if
(
check_int
(&
j
,
__alignof__
(
j
)) !=
j
)
27
abort
();
28
29
j
= -
20
;
30
}
31
bar
();
32
33
if
(
j
!= -
20
)
34
abort
();
35
36
if
(
check_int
(&
j
,
__alignof__
(
j
)) !=
j
)
37
abort
();
38
}
39
40
int
41
main
()
42
{
43
foo
();
44
return
0
;
45
}