blob: 60d815ae127d1f944ed7875ba255d987db6fc1d2 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread int u = 1;
void f() {
uint const v = uint(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]
uint const v = uint(u);
^