SKIP: FAILED



Validation Failure:
#include <metal_stdlib>

using namespace metal;
void textureStore_fbf53f() {
  arg_0.write(int4(), int2(), 1);
}

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

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

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


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