repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
fprw.c
blob
4ef74c720497ca77523f3eaceccbe258428b29dd
1
2
3
4
5
#include <stdlib.h>
6
7
int
main
(
void
)
8
{
9
volatile
double
d
;
10
volatile
float
f
;
11
double
*
dp
=
malloc
(
sizeof
(
double
));
12
float
*
fp
=
malloc
(
sizeof
(
float
));
13
int
*
ip
= (
int
*)
0x12345678
;
14
d
+=
1.0
;
15
f
+=
10.0
;
16
*
dp
+= (
d
>
0.1
?
2.0
:
3.0
);
17
*
fp
+= (
f
>
0.1
?
20.0
:
21.0
);
18
free
(
dp
);
19
free
(
fp
);
20
*
dp
+=
3.0
;
21
*
fp
+=
30.0
;
22
free
(
ip
);
23
ip
=
malloc
(
sizeof
(
int
));
24
* ((
double
*)
ip
) =
1.2
+
d
;
25
return
0
;
26
}