mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
test: Add test cases for zero value constructors
Fixed: tint:477 Change-Id: I087c24904ab2f38524ab2c39092fbfb277fdba3b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55256 Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
6330260f7d
commit
fd75bd0965
10
test/expressions/zero_init/array/struct.wgsl
Normal file
10
test/expressions/zero_init/array/struct.wgsl
Normal file
@@ -0,0 +1,10 @@
|
||||
struct S {
|
||||
i : i32;
|
||||
u : u32;
|
||||
f : f32;
|
||||
b : bool;
|
||||
};
|
||||
|
||||
fn f() {
|
||||
var v = array<S, 4>();
|
||||
}
|
||||
Reference in New Issue
Block a user