SKIP: FAILED | |
#include <metal_stdlib> | |
using namespace metal; | |
thread int a = 1; | |
fragment void f() { | |
int const b = a; | |
} | |
program_source:4:12: error: program scope variable must reside in constant address space | |
thread int a = 1; | |
^ | |
program_source:6:13: warning: unused variable 'b' [-Wunused-variable] | |
int const b = a; | |
^ | |