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