blob: 87c4c6eb860f27bf035bb261f1bdec5aa76f9f99 [file] [log] [blame]
SKIP: FAILED
RWByteAddressBuffer buffer : register(u0);
void foo() {
{
int i = 0;
while(true) {
if ((i < 4)) {
} else {
break;
}
switch(asint(buffer.Load((0u + (uint(i) * 4u))))) {
case 1:
{
{
i = (i + 1);
}
continue;
}
default:
{
uint v = (0u + (uint(i) * 4u));
buffer.Store(v, asuint(2));
break;
}
}
{
i = (i + 1);
}
continue;
}
}
}
void main() {
foo();
}
FXC validation failure:
<scrubbed_path>(17,11-19): error X3708: continue cannot be used in a switch
tint executable returned error: exit status 1