dawn-cmake/test/bug/tint/1321.wgsl.expected.msl

22 lines
298 B
Plaintext

#include <metal_stdlib>
using namespace metal;
int foo() {
return 1;
}
struct tint_array_wrapper {
float arr[4];
};
fragment void tint_symbol() {
tint_array_wrapper arr = {.arr={}};
int const a_save = foo();
for(; ; ) {
float const x = arr.arr[a_save];
break;
}
return;
}