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