blob: 47eba93749b95d01d08190a496b406ea97a1048a [file] [log] [blame]
SKIP: INVALID
static uint var_1 = 0u;
void main_1() {
while (true) {
var_1 = 1u;
if (false) {
break;
}
{
var_1 = 2u;
}
}
return;
}
void main() {
main_1();
return;
}
DXC validation failure:
error: validation errors
hlsl.hlsl:16: error: Loop must have break.
Validation failed.
tint executable returned error: exit status 1