blob: f4b88128fa73c261ebd07205f527cb6a5b5986af [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
void deref() {
int3 a = 0;
thread int3* const p = (&a);
int b = (*p)[0u];
(*p)[0u] = 42;
}
void no_deref() {
int3 a = 0;
thread int3* const p = (&a);
int b = (*p)[0u];
(*p)[0u] = 42;
}
kernel void tint_symbol() {
deref();
no_deref();
}