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