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