static int Main() { Cls1f cls1f = new Cls1f(); Test1f(cls1f); Cls2f cls2f = new Cls2f(); Test2f(cls2f); Cls3f cls3f = new Cls3f(); Test3f(cls3f); Cls4f cls4f = new Cls4f(); Test4f(cls4f); Cls5f cls5f = new Cls5f(); Test5f(cls5f); Cls6f cls6f = new Cls6f(); Test6f(cls6f); return(100); }
static void Test2f(Cls2f c) { Struct2f l1 = default; Struct2f l2 = default; Struct2f l3 = default; for (int i = 0; i < 10; i++) { l1 = c.sf; l2 = c.sf; l3 = c.sf; } Sink(ref l1); Sink(ref l2); Sink(ref l3); }