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