mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
test: Add tests to verify variables are zero initialized
Bug: tint:938 Fixed: tint:759 Change-Id: I5794d7f40ec154c55240b163316ed45c7f14b190 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56547 Reviewed-by: James Price <jrprice@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Tint LUCI CQ
parent
71a1f58537
commit
fb4e751258
13
test/var/initialization/function/array.wgsl.expected.msl
Normal file
13
test/var/initialization/function/array.wgsl.expected.msl
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct tint_array_wrapper {
|
||||
int arr[3];
|
||||
};
|
||||
|
||||
kernel void tint_symbol() {
|
||||
tint_array_wrapper v = {};
|
||||
(void) v;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user