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
Small ChangeLog tweak.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
pr49281.c
blob
75f5314116aed653b1fef2954b12d4ffea2f1195
1
/* PR target/49281 */
2
3
extern
void
abort
(
void
);
4
5
__attribute__
((
noinline
,
noclone
))
int
6
foo
(
int
x
)
7
{
8
return
(
x
<<
2
) |
4
;
9
}
10
11
__attribute__
((
noinline
,
noclone
))
int
12
bar
(
int
x
)
13
{
14
return
(
x
<<
2
) |
3
;
15
}
16
17
int
18
main
()
19
{
20
if
(
foo
(
43
) !=
172
||
foo
(
1
) !=
4
||
foo
(
2
) !=
12
)
21
abort
();
22
if
(
bar
(
43
) !=
175
||
bar
(
1
) !=
7
||
bar
(
2
) !=
11
)
23
abort
();
24
return
0
;
25
}