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