#include #include #ifdef __clang__ #pragma clang diagnostic ignored "-Wall" #endif using namespace metal; struct Inputs { }; struct Outputs { half4 sk_FragColor [[color(0)]]; }; float foo_ff(array v) { return v[0] = v[1]; } fragment Outputs fragmentMain(Inputs _in [[stage_in]], bool _frontFacing [[front_facing]], float4 _fragCoord [[position]]) { Outputs _out; (void)_out; array y; foo_ff(y); return _out; }