blob: 4184af3ed5de616b37020e3334ce06c271e603d9 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
threadgroup bool v;
int foo() {
threadgroup_barrier(mem_flags::mem_threadgroup);
bool const v_1 = v;
threadgroup_barrier(mem_flags::mem_threadgroup);
if (v_1) {
return 42;
}
return 0;
}
program_source:4:18: error: program scope variable must reside in constant address space
threadgroup bool v;
^