blob: 28c715fb9b03bc0395f9fb0ba18c7dd0209165c2 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
void func(thread int* const pointer) {
(*pointer) = 42;
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
int F = 0;
func((&F));
}