dawn-cmake/test/loops/loop_with_continuing.wgsl.e...

17 lines
179 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
int f() {
int i = 0;
while (true) {
if ((i > 4)) {
return i;
}
{
i = (i + 1);
}
}
return 0;
}