dawn-cmake/test/tint/statements/for/continuing/array_ctor.wgsl.expected.fxc.hlsl
Antonio Maiorano 5b3707a2d7 tint: Implement const eval of unary not
Bug: tint:1581
Change-Id: If0a74b1f6739725a2284678aab97baf737d96937
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101761
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2022-09-13 17:32:17 +00:00

20 lines
246 B
HLSL

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
void f() {
int i = 0;
[loop] while (true) {
if (true) {
break;
}
{
}
{
const int tint_symbol[1] = {1};
i = (i + tint_symbol[0]);
}
}
}