SKIP: FAILED



Validation Failure:
#include <metal_stdlib>

using namespace metal;
void textureStore_26bf70() {
  arg_0.write(uint4(), int2());
}

vertex void vertex_main() {
  textureStore_26bf70();
  return;
}

fragment void fragment_main() {
  textureStore_26bf70();
  return;
}

kernel void compute_main() {
  textureStore_26bf70();
  return;
}


tint_u7QeEL.metal:5:3: error: use of undeclared identifier 'arg_0'
  arg_0.write(uint4(), int2());
  ^
1 error generated.
