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