blob: fe64085a88e7dc2a2edb05ddf3e2fb5d80c1ca6a [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float t = 0.0f;
float3 m() {
t = 1.0f;
return float3(t);
}
void f() {
int3 v = tint_v3f32_to_v3i32(m());
}
int3 tint_v3f32_to_v3i32(float3 value) {
return select(int3(2147483647), select(int3((-2147483647 - 1)), int3(value), (value >= float3(-2147483648.0f))), (value <= float3(2147483520.0f)));
}
program_source:4:14: error: program scope variable must reside in constant address space
thread float t = 0.0f;
^
program_source:10:12: error: use of undeclared identifier 'tint_v3f32_to_v3i32'
int3 v = tint_v3f32_to_v3i32(m());
^