blob: 04cd450b227ec7ccb91827159362d1724b3e99b4 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float t = 0.0f;
float2 m() {
t = 1.0f;
return float2(t);
}
void f() {
bool2 v = bool2(m());
}
program_source:4:14: error: program scope variable must reside in constant address space
thread float t = 0.0f;
^
program_source:10:9: warning: unused variable 'v' [-Wunused-variable]
bool2 v = bool2(m());
^