commit | fd75bd0965020ead514ce25caf946974bf50d06e | [log] [tgz] |
---|---|---|
author | Ben Clayton <bclayton@google.com> | Mon Jun 21 20:31:36 2021 +0000 |
committer | Tint LUCI CQ <tint-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 21 20:31:36 2021 +0000 |
tree | e83d1927fb6fed311eca19832643a35d20bf2e0c | |
parent | 6330260f7d0e7322d1162fdd84ff2e6a8db76ab9 [diff] [blame] |
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>
diff --git a/test/expressions/zero_init/struct/array.wgsl b/test/expressions/zero_init/struct/array.wgsl new file mode 100644 index 0000000..148b457 --- /dev/null +++ b/test/expressions/zero_init/struct/array.wgsl
@@ -0,0 +1,7 @@ +struct S { + a : array<f32, 4>; +}; + +fn f() { + var v = S(); +}