blob: 1179f380151b844ac76e4aaab4399f2e7b43846b [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;
}
fragment void tint_symbol(uint x_1_param [[sample_id]]) {
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;
^