blob: e24f750a7862e9ed29920e5751ce7c57fc337b06 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread int2 u = int2(1);
void f() {
half2 const v = half2(u);
}
program_source:4:13: error: program scope variable must reside in constant address space
thread int2 u = int2(1);
^
program_source:6:15: warning: unused variable 'v' [-Wunused-variable]
half2 const v = half2(u);
^