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
/
bug340392.c
blob
c95bdf937d645d5aa6bc37c0ede34ea74e110586
1
#include <stdlib.h>
2
3
typedef
struct
{
4
unsigned char
c
;
5
int
i
;
6
void
*
foo
;
7
}
S
;
8
9
S
*
make_s
(
void
);
10
11
int
12
main
(
int
argc
,
char
**
argv
)
13
{
14
S
*
s
=
make_s
();
15
if
(
s
->
c
==
0
&&
s
->
i
==
1
&&
s
->
foo
==
getenv
(
"BLAH"
))
16
abort
();
17
return
0
;
18
}
19
20
S
*
21
make_s
(
void
)
22
{
23
S
*
res
=
malloc
(
sizeof
(
S
));
24
res
->
c
=
1
;
25
return
res
;
26
}