blob: ec44ab28599524f1b8f853660aa5c18cde3a06db [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
thread int* P;
};
void func(thread int* const pointer) {
(*pointer) = 42;
}
kernel void tint_symbol() {
thread int P = 0;
tint_module_vars_struct const tint_module_vars = {.P=(&P)};
func(tint_module_vars.P);
}