dawn-cmake/test/loops/nested_loops_with_continuin...

26 lines
301 B
Plaintext

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