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