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