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