Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
frameworks
/
compile
/
slang
/
5743f7ef6fd1045d5314929b16c92a267004e384
/
.
/
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
;
}