SKIP: INVALID


RWByteAddressBuffer prevent_dce : register(u0);
int subgroupInclusiveMul_9a54ec() {
  int res = (WavePrefixProduct(int(1)) * int(1));
  return res;
}

void fragment_main() {
  prevent_dce.Store(0u, asuint(subgroupInclusiveMul_9a54ec()));
}

[numthreads(1, 1, 1)]
void compute_main() {
  prevent_dce.Store(0u, asuint(subgroupInclusiveMul_9a54ec()));
}

FXC validation failure:
<scrubbed_path>(4,14-38): error X3004: undeclared identifier 'WavePrefixProduct'


tint executable returned error: exit status 1
