blob: afda7c5178b7c62d545fcf86c995f315ba153fd5 [file] [log] [blame]
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;
^