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