Sign in
dawn
/
dawn
/
91622e3853ac3022419cd0568c159a1909e976fc
/
.
/
test
/
loops
/
nested_loops_with_continuing.wgsl.expected.msl
blob: 8c9f8fdee2f92bb3f9d3256aed697961e6138186 [
file
] [
log
] [
blame
]
#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
;
}