blob: ab075de9939579fb1956d8c973d8aad73248a316 [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 = tint_module_vars_struct{.P=(&P)};
func(tint_module_vars.P);
}