mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-14 00:56:05 +00:00
For loops only support assignments or function calls for the continuing statement. Fixed: tint:1064 Change-Id: I07065b2119e7b9f97ca7e46b1464fd72333ca429 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60212 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: David Neto <dneto@google.com>
20 lines
229 B
Plaintext
20 lines
229 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
fragment void tint_symbol() {
|
|
while (true) {
|
|
if (false) {
|
|
} else {
|
|
break;
|
|
}
|
|
{
|
|
if (true) {
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
|