blob: 789be62a4ed163895f35fc198e4464e0dfe24d87 [file]
#include <metal_stdlib>
using namespace metal;
struct str {
int i;
};
str func(thread str* const pointer) {
return (*pointer);
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
array<str, 4> F = {};
str const r = func((&F[2]));
}