SKIP: FAILED



Validation Failure:
#include <metal_stdlib>

using namespace metal;
void textureNumLayers_45155d() {
  int res = int(arg_0.get_array_size());
}

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

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

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


tint_sM3glL.metal:5:17: error: use of undeclared identifier 'arg_0'
  int res = int(arg_0.get_array_size());
                ^
1 error generated.
