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