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 middle-end/27945
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
profile-generate-1.c
blob
fe51754bcb75464a56fe3914bdab336a8b254994
1
/* Bug 16325. */
2
/* { dg-options "-O -fprofile-generate" } */
3
4
extern
void
abort
(
void
);
5
6
int
*
p1
;
7
int
*
p2
;
8
int
*
p3
;
9
10
int
ga
=
100
;
11
12
int
13
sub
(
int
i
,
int
j
)
14
{
15
int
k
;
16
int
l
;
17
int
m
;
18
int
n
;
19
p1
= &
k
;
20
p2
= &
l
;
21
p3
= &
m
;
22
k
=
20
;
23
l
=
30
;
24
m
=
40
;
25
n
=
i
/
j
;
26
return
n
+
ga
;
27
}
28
29
int
30
main
(
void
)
31
{
32
if
(
sub
(
99
,
33
) !=
103
)
33
abort
();
34
return
0
;
35
}
36
37
/* { dg-final { cleanup-coverage-files } } */