Sign in
dawn
/
dawn
/
fc85619d770e00e72ca541cd2957a9e3ac6c016b
/
.
/
test
/
tint
/
statements
/
compound_assign
/
divide_by_zero.wgsl
blob: 7ff3454342fb4e0f75e85560cb8631f74dd74f1a [
file
] [
log
] [
blame
]
var
<private>
a
:
i32
;
var
<private>
b
:
f32
;
fn foo
(
maybe_zero
:
i32
)
{
a
/=
0
;
a
%=
0
;
a
/=
maybe_zero
;
a
%=
maybe_zero
;
b
/=
0.0
;
b
%=
0.0
;
b
/=
f32
(
maybe_zero
);
b
%=
f32
(
maybe_zero
);
}