blob: 7658eae4ccd1acd3e7d9e9623db5046f6c1f745e [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread uint3 x_1 = 0u;
void main_1() {
uint3 const x_2 = x_1;
}
kernel void tint_symbol(uint3 x_1_param [[thread_position_in_threadgroup]]) {
x_1 = x_1_param;
main_1();
}
program_source:4:14: error: program scope variable must reside in constant address space
thread uint3 x_1 = 0u;
^
program_source:6:15: warning: unused variable 'x_2' [-Wunused-variable]
uint3 const x_2 = x_1;
^