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
PR target/55146
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr46499-1.c
blob
9815272e681b3daf6a8966f3e7500b77a052da74
1
/* PR middle-end/46499 */
2
/* { dg-do run } */
3
/* { dg-options "-O -fno-omit-frame-pointer -fno-tree-ccp -fno-tree-dominator-opts -finline-small-functions" } */
4
5
extern
void
abort
(
void
);
6
7
int
count
=
0
;
8
9
int
10
foo
(
void
)
11
{
12
count
++;
13
return
0
;
14
}
15
16
int
17
bar
(
void
)
18
{
19
count
++;
20
return
0
;
21
}
22
23
int
24
main
()
25
{
26
if
((
foo
() ==
1
) & (
bar
() ==
1
))
27
abort
();
28
if
(
count
!=
2
)
29
abort
();
30
return
0
;
31
}