blob: 7a52224a564f9852bbaa14c68b63d5c2a33a43c4 [file]
#include <metal_stdlib>
using namespace metal;
void deref() {
int3 a = 0;
thread int3* const p = (&a);
int b = (*p).x;
(*p).x = 42;
}
void no_deref() {
int3 a = 0;
thread int3* const p = (&a);
int b = (*p).x;
(*p).x = 42;
}
[[max_total_threads_per_threadgroup(1)]]
kernel void v() {
deref();
no_deref();
}