blob: 2d802fa6e1edc88a341b2551f8d4659ebe29dafc [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_grid]]) {
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;
^