Sign in
dawn
/
dawn
/
fa4d4341f4bd41f891646ed388325c0befe6c3e4
/
.
/
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
;
}