blob: b831429135eb3975e43883cd3eef7a40ca4ee7f4 [file] [log] [blame] [edit]
#include <metal_stdlib>
using namespace metal;
int func(int value, thread int* const pointer) {
return as_type<int>((as_type<uint>(value) + as_type<uint>((*pointer))));
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
int i = 123;
int const r = func(i, (&i));
}