mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-13 08:36:08 +00:00
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>
25 lines
323 B
Plaintext
25 lines
323 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
struct S {
|
|
int i;
|
|
};
|
|
|
|
void f() {
|
|
{
|
|
int i = 0;
|
|
while (true) {
|
|
if (true) {
|
|
break;
|
|
}
|
|
{
|
|
}
|
|
{
|
|
S const tint_symbol = S{.i=1};
|
|
i = as_type<int>((as_type<uint>(i) + as_type<uint>(tint_symbol.i)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|