Sign in
android
/
platform
/
frameworks
/
compile
/
slang
/
2ee717d0cbbbec49c6438ca66cdee0e473888f02
/
.
/
tests
/
F_reduce_api_unsupported
/
reduce_api_unsupported.rs
blob: 8dfedfb05604ff7cc4cf1d012eafa99f62bb920a [
file
] [
log
] [
blame
]
// -target-api 23
#
pragma version
(
1
)
#
pragma rs java_package_name
(
foo
)
typedef
struct
foo
{
int x
;
}
foo
;
foo __attribute__
((
kernel
(
"reduce"
)))
addFoo
(
foo a
,
foo b
)
{
foo result
=
{
a
.
x
+
b
.
x
};
return
result
;
}