Sign in
dawn
/
dawn
/
3ddc07a18b8a22570ffe1e93f0a11d036462c192
/
.
/
test
/
tint
/
statements
/
compound_assign
/
complex_lhs.wgsl.expected.wgsl
blob: 4d16e270535700b4f96fcd8625b0768a6d9bbc0f [
file
] [
log
] [
blame
]
struct
S
{
a
:
array
<
vec4
<i32>
,
4
>,
}
var
<private>
counter
:
i32
;
fn foo
()
->
i32
{
counter
+=
1
;
return
counter
;
}
fn bar
()
->
i32
{
counter
+=
2
;
return
counter
;
}
fn main
()
{
var
x
=
S
();
let
p
=
&(
x
);
(*(
p
)).
a
[
foo
()][
bar
()]
+=
5
;
}