blob: 04afc383fbc7452aec10e2a42df42e56d832c0d3 [file] [log] [blame]
James Pricea30f8dd2024-05-10 14:31:43 +00001#include <metal_stdlib>
2using namespace metal;
James Price48be7e82024-06-19 22:38:07 +00003
James Price460f0922024-05-16 21:45:04 +00004struct tint_module_vars_struct {
5 threadgroup bool* v;
6};
James Pricea30f8dd2024-05-10 14:31:43 +00007
James Price460f0922024-05-16 21:45:04 +00008bool foo(tint_module_vars_struct tint_module_vars) {
James Pricea30f8dd2024-05-10 14:31:43 +00009 threadgroup_barrier(mem_flags::mem_threadgroup);
James Pricede734312024-05-16 22:20:44 +000010 bool const v_1 = (*tint_module_vars.v);
James Pricea30f8dd2024-05-10 14:31:43 +000011 threadgroup_barrier(mem_flags::mem_threadgroup);
12 return v_1;
13}