mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +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
17
test/expressions/zero_init/array/struct.wgsl.expected.msl
Normal file
17
test/expressions/zero_init/array/struct.wgsl.expected.msl
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
struct S {
|
||||
int i;
|
||||
uint u;
|
||||
float f;
|
||||
bool b;
|
||||
};
|
||||
struct tint_array_wrapper {
|
||||
S arr[4];
|
||||
};
|
||||
|
||||
void f() {
|
||||
tint_array_wrapper v = {.arr={}};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user