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