#pragma clang diagnostic ignored "-Wmissing-prototypes" #include #include using namespace metal; void myfunc(threadgroup int* foo) { foo[0] = 13; } kernel void main0() { threadgroup int foo[1337]; myfunc(foo); }