blob: f5d433e437fb843dc2982bd578b32afe751b80a7 [file] [log] [blame]
SKIP: FAILED
#include <metal_stdlib>
using namespace metal;
thread uint var_1 = 0u;
uint x_200() {
{
while(true) {
return 2u;
}
}
/* unreachable */
}
void main_1() {
uint const x_11 = x_200();
}
fragment void tint_symbol() {
main_1();
}
program_source:4:13: error: program scope variable must reside in constant address space
thread uint var_1 = 0u;
^
program_source:14:14: warning: unused variable 'x_11' [-Wunused-variable]
uint const x_11 = x_200();
^