blob: 57e6e8d3e8b6349d8e9e1b0cc677f0dea17d891b [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread uint t = 0u;
uint2 m() {
t = 1u;
return uint2(t);
}
void f() {
int2 v = int2(m());
}
program_source:4:13: error: program scope variable must reside in constant address space
thread uint t = 0u;
^
program_source:10:8: warning: unused variable 'v' [-Wunused-variable]
int2 v = int2(m());
^