Sign in
ara-mdk
/
platform
/
ndk
/
afd6c24a08e441b63da62a2c35a8f9c545502faa
/
.
/
tests
/
device
/
issue28598-linker-global-ref
/
jni
/
main.cpp
blob: f47ef0026963aedbc1cdfde9bd06322d36511b6a [
file
] [
log
] [
blame
]
#include
<cstdio>
#include
"liba.h"
int
*
global_ptr
=
&
global
;
// Without this line, everything is fine
int
main
()
{
func
();
printf
(
"global = 0x%x (%p)%s\n"
,
global
,
&
global
,
((
global
!=
0x42
)?
", ERROR!!!"
:
""
));
return
global
!=
0x42
;
}