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