// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. .assembly extern mscorlib {} .assembly MCCTest {} .module mcc_i10.exe .namespace MCCTest { .class MyClass { .method assembly static pinvokeimpl("native_i1c" as "#1" cdecl) vararg valuetype MCCTest.VType1 Sum(float32) cil managed preservesig { } .method private static int32 Main(string[] args) { .entrypoint .maxstack 64 .locals init ( [0] valuetype MCCTest.VType1 res, [1] int32 rc ) ldc.r8 1 ldc.r8 2 ldc.r8 3 ldc.r8 4 ldc.r8 5 ldc.r8 6 ldc.r8 7 ldc.r8 8 ldc.r8 9 ldc.r8 10 ldc.r8 11 ldc.r8 12 ldc.r8 1 neg call vararg valuetype MCCTest.VType1 MCCTest.MyClass::Sum(float32, ..., float32, float32, float32, float32, float32, float32, float32, float32, float32, float32, float32, float32) stloc.s res // Check Result ldloc.s res ldc.i4 12 call int32 MCCTest.Common::CheckResult(valuetype MCCTest.VType1, int32) stloc.s rc ldloc.s rc ret } // end of method MyClass::Main } // end of class MyClass } // end of namespace MCCTest