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