Sign in
ara-mdk
/
platform
/
ndk
/
47371c6a4e0d1a8522e8c7c163c98032c35e1053
/
.
/
tests
/
device
/
issue38121
/
jni
/
main.c
blob: 5d601c7dcbf219dc2f3c386b669c5c619a0423b0 [
file
] [
log
] [
blame
]
#include
<pthread.h>
static
int
testval
=
4
;
void
dodgy_function
(
pthread_key_t
*
key
)
{
pthread_setspecific
(*
key
,
&
testval
);
}
int
main
(
void
)
{
pthread_key_t
mykey
;
pthread_key_create
(&
mykey
,
NULL
);
dodgy_function
(&
mykey
);
return
0
;
}