diff options
Diffstat (limited to 'mcs/tests')
-rw-r--r-- | mcs/tests/test-ref-07.cs | 7 | ||||
-rw-r--r-- | mcs/tests/ver-il-net_4_x.xml | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/mcs/tests/test-ref-07.cs b/mcs/tests/test-ref-07.cs index f17cfb443b5..9ee9cf36911 100644 --- a/mcs/tests/test-ref-07.cs +++ b/mcs/tests/test-ref-07.cs @@ -1,8 +1,13 @@ // Compiler options: -langversion:latest +public struct TestMain +{ + public static void Main () => Test.MainMethod(); +} + public readonly ref partial struct Test { - public static void Main () + public static void MainMethod () { var m = new Test (); m.Method (); diff --git a/mcs/tests/ver-il-net_4_x.xml b/mcs/tests/ver-il-net_4_x.xml index 4ad26da95f7..60cfdfef724 100644 --- a/mcs/tests/ver-il-net_4_x.xml +++ b/mcs/tests/ver-il-net_4_x.xml @@ -73853,8 +73853,13 @@ </type> </test> <test name="test-ref-07.cs"> - <type name="Test"> + <type name="TestMain"> <method name="Void Main()" attrs="150"> + <size>7</size> + </method> + </type> + <type name="Test"> + <method name="Void MainMethod()" attrs="150"> <size>18</size> </method> <method name="Test Method()" attrs="129"> |