blob: aae30ea7e3e2a5ff63611dd47bf28f6cd943779a [file] [log] [blame]
<dawn>/test/tint/bug/tint/2201.wgsl:9:9 warning: code is unreachable
let _e16_ = vec2(false, false);
^^^^^^^^^
#include <metal_stdlib>
using namespace metal;
#define TINT_ISOLATE_UB(VOLATILE_NAME) \
volatile bool VOLATILE_NAME = true; \
if (VOLATILE_NAME)
kernel void tint_symbol() {
{
TINT_ISOLATE_UB(tint_volatile_true) while(true) {
if (true) {
break;
} else {
break;
}
/* unreachable */
}
}
}