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); | |
^ | |