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