27 lines
362 B
Plaintext
27 lines
362 B
Plaintext
|
SKIP: FAILED
|
||
|
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
Failed to generate: error: unknown statement type: tint::ast::CompoundAssignmentStatement
|