blob: ee123747fb667611ca6cfab1d7960c386a4c8d8f [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread int t = 0;
int m() {
t = 1;
return int(t);
}
void f() {
float v = float(m());
}
program_source:4:12: error: program scope variable must reside in constant address space
thread int t = 0;
^
program_source:10:9: warning: unused variable 'v' [-Wunused-variable]
float v = float(m());
^