blob: 000b361811cdd417ace30230ede11f1f8aa13ecc [file] [log] [blame]
#include <metal_stdlib>
using namespace metal;
#define TINT_ISOLATE_UB \
if (volatile bool tint_volatile_true = true; tint_volatile_true)
int f() {
int i = 0;
int j = 0;
TINT_ISOLATE_UB while(true) {
if ((i > 4)) {
return 1;
}
TINT_ISOLATE_UB while(true) {
if ((j > 4)) {
return 2;
}
{
j = as_type<int>((as_type<uint>(j) + as_type<uint>(1)));
}
}
{
i = as_type<int>((as_type<uint>(i) + as_type<uint>(1)));
}
}
}