Sign in
android
/
platform
/
ndk
/
06c762d797782f574e40a956613c4e19c504b6c1
/
.
/
tests
/
device
/
bitfield
/
jni
/
main.c
blob: 82b182ac6cc88b63698952157caa12a59ee80cc5 [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
"header.h"
int
main
()
{
union
u u
;
u
.
i
=
0xfedcba98
;
printf
(
"u.i = %08x\n"
,
u
.
i
);
foo
(&
u
,
1
);
printf
(
"u.i = %08x (expecting fedcba99)\n"
,
u
.
i
);
return
(
u
.
i
==
0xfedcba99
)?
0
:
1
;
}