blob: 63e7c301f90838628e1443d7dace328498f2cea1 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread float u = 1.0f;
void f() {
uint const v = tint_f32_to_u32(u);
}
uint tint_f32_to_u32(float value) {
return select(4294967295u, select(0u, uint(value), (value >= 0.0f)), (value <= 4294967040.0f));
}
program_source:4:14: error: program scope variable must reside in constant address space
thread float u = 1.0f;
^
program_source:6:14: warning: unused variable 'v' [-Wunused-variable]
uint const v = tint_f32_to_u32(u);
^