mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-10 16:43:34 +00:00
Allow module-scope declarations to be made in any order. Bug: tint:1266 Change-Id: Ib2607b6c33fad7c83e2c36f85b0a965eac922ec5 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/79769 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
12 lines
124 B
HLSL
12 lines
124 B
HLSL
struct S {
|
|
int m;
|
|
};
|
|
|
|
static S A[4] = (S[4])0;
|
|
|
|
void f() {
|
|
const S tint_symbol = {1};
|
|
A[0] = tint_symbol;
|
|
return;
|
|
}
|