repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
torture
/
stackalign
/
inline-1.c
blob
38127fd503a3a1cf5c93bc9d516a79086ce61bfa
1
/* { dg-do run } */
2
/* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */
3
4
#include
"check.h"
5
6
#ifndef ALIGNMENT
7
#define ALIGNMENT 64
8
#endif
9
10
typedef
int
aligned
__attribute__
((
aligned
(
ALIGNMENT
)));
11
12
int
global
;
13
14
static void
15
inline
__attribute__
((
always_inline
))
16
foo
(
void
)
17
{
18
aligned i
;
19
20
if
(
check_int
(&
i
,
__alignof__
(
i
)) !=
i
)
21
abort
();
22
}
23
24
int
25
main
()
26
{
27
foo
();
28
return
0
;
29
}