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
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
s390
/
function-align1.c
blob
78fa563098e95dd96392c4f27bd88513bd358376
1
/* { dg-do run } */
2
/* { dg-options "-O2 -march=z13" } */
3
4
#include <assert.h>
5
#include <stdint.h>
6
7
__attribute__
((
noinline
))
8
void
foo1
() {}
9
10
__attribute__
((
noinline
))
11
__attribute__
((
optimize
(
"align-functions=32"
)))
12
void
foo2
() {}
13
14
int
main
()
15
{
16
foo1
();
17
foo2
();
18
19
void
*
f
= &
foo1
;
20
void
*
g
= &
foo2
;
21
22
assert
(((
uintptr_t
)
f
%
16
) ==
0
);
23
assert
(((
uintptr_t
)
g
%
32
) ==
0
);
24
}