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); | |
^ | |