blob: 2032c27694cf827fd9b51408f2e46601ed167695 [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
struct tint_module_vars_struct {
threadgroup bool* v;
};
int foo(tint_module_vars_struct tint_module_vars) {
threadgroup_barrier(mem_flags::mem_threadgroup);
bool const v_1 = (*tint_module_vars.v);
threadgroup_barrier(mem_flags::mem_threadgroup);
if (v_1) {
return 42;
}
return 0;
}