summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Methodical/nonvirtualcall/tailcall.il
blob: 7bd47a0a1ec8879dd72cb25b5bf1f31942b61c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
// 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 System.Console
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
  .ver 4:0:0:0
}





// Metadata version: v2.0.50509
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 2:0:0:0
}
.assembly tailcall
{
  .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) 
  .hash algorithm 0x00008004
  .ver 0:0:0:0
}
.module nonvirtualcalls_tailcall.exe
// MVID: {EC3860F1-6469-489C-86D2-A81D88AE196E}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003       // WINDOWS_CUI
.corflags 0x00000001    //  ILONLY
// Image base: 0x000000001AB30000


// =============== CLASS MEMBERS DECLARATION ===================

.class public abstract auto ansi beforefieldinit Test.Base
       extends [mscorlib]System.Object
{
  .method public hidebysig newslot abstract virtual 
          instance string  AbstractFinal() cil managed
  {
  } // end of method Base::AbstractFinal

  .method public hidebysig newslot abstract virtual 
          instance string  AbstractOverrideFinal() cil managed
  {
  } // end of method Base::AbstractOverrideFinal

  .method public hidebysig newslot abstract virtual 
          instance string  AbstractOverrideOverride() cil managed
  {
  } // end of method Base::AbstractOverrideOverride

  .method public hidebysig newslot abstract virtual 
          instance string  AbstractOverrideNil() cil managed
  {
  } // end of method Base::AbstractOverrideNil

  .method public hidebysig newslot virtual 
          instance string  VirtualFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualFinal

  .method public hidebysig newslot virtual 
          instance string  VirtualNilFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualNilFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualNilFinal

  .method public hidebysig newslot virtual 
          instance string  VirtualOverrideFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualOverrideFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualOverrideFinal

  .method public hidebysig newslot virtual 
          instance string  VirtualNilOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualNilOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualNilOverride

  .method public hidebysig newslot virtual 
          instance string  VirtualNilNil() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualNilNil"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualNilNil

  .method public hidebysig newslot virtual 
          instance string  VirtualOverrideOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualOverrideOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualOverrideOverride

  .method public hidebysig newslot virtual 
          instance string  VirtualOverrideNil() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Base.VirtualOverrideNil"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Base::VirtualOverrideNil

  .method family hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // Code size       7 (0x7)
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
    IL_0006:  ret
  } // end of method Base::.ctor

} // end of class Test.Base

.class public auto ansi beforefieldinit Test.Child
       extends Test.Base
{
  .method public hidebysig virtual final 
          instance string  AbstractFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.AbstractFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::AbstractFinal

  .method public hidebysig instance string 
          CallAbstractFinal() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.Child::AbstractFinal()
    IL_000b:  ret
  } // end of method Child::CallAbstractFinal

  .method public hidebysig virtual instance string 
          AbstractOverrideFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.AbstractOverrideFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::AbstractOverrideFinal

  .method public hidebysig virtual instance string 
          AbstractOverrideOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.AbstractOverrideOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::AbstractOverrideOverride

  .method public hidebysig virtual instance string 
          AbstractOverrideNil() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.AbstractOverrideNil"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::AbstractOverrideNil

  .method public hidebysig instance string 
          CallAbstractOverrideNil() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.Child::AbstractOverrideNil()
    IL_000b:  ret
  } // end of method Child::CallAbstractOverrideNil

  .method public hidebysig virtual final 
          instance string  VirtualFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.VirtualFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::VirtualFinal

  .method public hidebysig instance string 
          CallVirtualFinal() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.Child::VirtualFinal()
   IL_000b:  ret
  } // end of method Child::tail. callualFinal

  .method public hidebysig virtual instance string 
          VirtualOverrideFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.VirtualOverrideFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::VirtualOverrideFinal

  .method public hidebysig virtual instance string 
          VirtualOverrideOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.VirtualOverrideOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::VirtualOverrideOverride

  .method public hidebysig virtual instance string 
          VirtualOverrideNil() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "Child.VirtualOverrideNil"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method Child::VirtualOverrideNil

  .method public hidebysig instance string 
          CallVirtualOverrideNil() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.Child::VirtualOverrideNil()
    IL_000b:  ret
  } // end of method Child::tail. callualOverrideNil

  .method public hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // Code size       7 (0x7)
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void Test.Base::.ctor()
    IL_0006:  ret
  } // end of method Child::.ctor

} // end of class Test.Child

.class public auto ansi beforefieldinit Test.GrandChild
       extends Test.Child
{
  .method public hidebysig virtual final 
          instance string  AbstractOverrideFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "GrandChild.AbstractOverrideFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method GrandChild::AbstractOverrideFinal

  .method public hidebysig instance string 
          CallAbstractOverrideFinal() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.GrandChild::AbstractOverrideFinal()
    IL_000b:  ret
  } // end of method GrandChild::CallAbstractOverrideFinal

  .method public hidebysig virtual instance string 
          AbstractOverrideOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "GrandChild.AbstractOverrideOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method GrandChild::AbstractOverrideOverride

  .method public hidebysig instance string 
          CallAbstractOverrideOverride() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.GrandChild::AbstractOverrideOverride()
   IL_000b:  ret
  } // end of method GrandChild::CallAbstractOverrideOverride

  .method public hidebysig virtual final 
          instance string  VirtualNilFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "GrandChild.VirtualNilFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method GrandChild::VirtualNilFinal

  .method public hidebysig instance string 
          CallVirtualNilFinal() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.GrandChild::VirtualNilFinal()
   IL_000b:  ret
  } // end of method GrandChild::tail. callualNilFinal

  .method public hidebysig virtual final 
          instance string  VirtualOverrideFinal() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "GrandChild.VirtualOverrideFinal"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method GrandChild::VirtualOverrideFinal

  .method public hidebysig instance string 
          CallVirtualOverrideFinal() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.GrandChild::VirtualOverrideFinal()
    IL_000b:  ret
  } // end of method GrandChild::tail. callualOverrideFinal

  .method public hidebysig virtual instance string 
          VirtualOverrideOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "GrandChild.VirtualOverrideOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method GrandChild::VirtualOverrideOverride

  .method public hidebysig instance string 
          CallVirtualOverrideOverride() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.GrandChild::VirtualOverrideOverride()
   IL_000b:  ret
  } // end of method GrandChild::tail. callualOverrideOverride

  .method public hidebysig virtual instance string 
          VirtualNilOverride() cil managed
  {
    // Code size       11 (0xb)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldstr      "GrandChild.VirtualNilOverride"
    IL_0006:  stloc.0
    IL_0007:  br.s       IL_0009

    IL_0009:  ldloc.0
    IL_000a:  ret
  } // end of method GrandChild::VirtualNilOverride

  .method public hidebysig instance string 
          CallVirtualNilOverride() cil managed
  {
    // Code size       12 (0xc)
    .maxstack  1
    .locals init (string V_0)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  tail. call   instance string Test.GrandChild::VirtualNilOverride()
    IL_000b:  ret
  } // end of method GrandChild::tail. callualNilOverride

  .method public hidebysig instance void 
          TestGrandChild() cil managed
  {
    // Code size       149 (0x95)
    .maxstack  2
    IL_0000:  nop
    IL_0001:  ldstr      "Call from inside GrandChild"
    IL_0006:  call       void [System.Console]System.Console::WriteLine(string)
    IL_000b:  nop
    IL_000c:  ldstr      "Child.AbstractFinal"
    IL_0011:  ldarg.0
    IL_0012:  call       instance string Test.Child::CallAbstractFinal()
    IL_0017:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_001c:  nop
    IL_001d:  ldstr      "GrandChild.AbstractOverrideFinal"
    IL_0022:  ldarg.0
    IL_0023:  call       instance string Test.GrandChild::CallAbstractOverrideFinal()
    IL_0028:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_002d:  nop
    IL_002e:  ldstr      "GrandChild.AbstractOverrideOverride"
    IL_0033:  ldarg.0
    IL_0034:  call       instance string Test.GrandChild::CallAbstractOverrideOverride()
    IL_0039:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_003e:  nop
    IL_003f:  ldstr      "Child.AbstractOverrideNil"
    IL_0044:  ldarg.0
    IL_0045:  call       instance string Test.Child::CallAbstractOverrideNil()
    IL_004a:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_004f:  nop
    IL_0050:  ldstr      "Child.VirtualFinal"
    IL_0055:  ldarg.0
    IL_0056:  call       instance string Test.Child::CallVirtualFinal()
    IL_005b:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_0060:  nop
    IL_0061:  ldstr      "GrandChild.VirtualOverrideFinal"
    IL_0066:  ldarg.0
    IL_0067:  call       instance string Test.GrandChild::CallVirtualOverrideFinal()
    IL_006c:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_0071:  nop
    IL_0072:  ldstr      "GrandChild.VirtualOverrideOverride"
    IL_0077:  ldarg.0
    IL_0078:  call       instance string Test.GrandChild::CallVirtualOverrideOverride()
    IL_007d:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_0082:  nop
    IL_0083:  ldstr      "Child.VirtualOverrideNil"
    IL_0088:  ldarg.0
    IL_0089:  call       instance string Test.Child::CallVirtualOverrideNil()
    IL_008e:  call       void Test.Assert::AreEqual(string,
                                                    string)
    IL_0093:  nop
    IL_0094:  ret
  } // end of method GrandChild::TestGrandChild

  .method public hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // Code size       7 (0x7)
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void Test.Child::.ctor()
    IL_0006:  ret
  } // end of method GrandChild::.ctor

} // end of class Test.GrandChild

.class public abstract auto ansi sealed beforefieldinit Test.Program
       extends [mscorlib]System.Object
{
  .method public hidebysig static void  CallFromInsideGrandChild() cil managed
  {
    // Code size       15 (0xf)
    .maxstack  1
    .locals init (class Test.GrandChild V_0)
    IL_0000:  nop
    IL_0001:  newobj     instance void Test.GrandChild::.ctor()
    IL_0006:  stloc.0
    IL_0007:  ldloc.0
    IL_0008:  tail. call   instance void Test.GrandChild::TestGrandChild()
    IL_000e:  ret
  } // end of method Program::CallFromInsideGrandChild

  .method public hidebysig static int32  Main(string[] args) cil managed
  {
    .entrypoint
    // Code size       52 (0x34)
    .maxstack  1
    .locals init (class [mscorlib]System.Exception V_0,
             int32 V_1)
    IL_0000:  nop
    .try
    {
      IL_0001:  nop
      IL_0002:  call       void Test.Program::CallFromInsideGrandChild()
      IL_0007:  nop
      IL_0008:  ldstr      "Test SUCCESS"
      IL_000d:  call       void [System.Console]System.Console::WriteLine(string)
      IL_0012:  nop
      IL_0013:  ldc.i4.s   100
      IL_0015:  stloc.1
      IL_0016:  leave.s    IL_0031

    }  // end .try
    catch [mscorlib]System.Exception 
    {
      IL_0018:  stloc.0
      IL_0019:  nop
      IL_001a:  ldloc.0
      IL_001b:  call       void [System.Console]System.Console::WriteLine(object)
      IL_0020:  nop
      IL_0021:  ldstr      "Test FAILED"
      IL_0026:  call       void [System.Console]System.Console::WriteLine(string)
      IL_002b:  nop
      IL_002c:  ldc.i4.s   101
      IL_002e:  stloc.1
      IL_002f:  leave.s    IL_0031

    }  // end handler
    IL_0031:  nop
    IL_0032:  ldloc.1
    IL_0033:  ret
  } // end of method Program::Main

} // end of class Test.Program

.class public abstract auto ansi sealed beforefieldinit Test.Assert
       extends [mscorlib]System.Object
{
  .method public hidebysig static void  AreEqual(string left,
                                                 string right) cil managed
  {
    // Code size       85 (0x55)
    .maxstack  3
    .locals init (string V_0,
             bool V_1)
    IL_0000:  nop
    IL_0001:  ldarg.0
    IL_0002:  call       bool [mscorlib]System.String::IsNullOrEmpty(string)
    IL_0007:  ldc.i4.0
    IL_0008:  ceq
    IL_000a:  stloc.1
    IL_000b:  ldloc.1
    IL_000c:  brtrue.s   IL_0019

    IL_000e:  ldstr      "left"
    IL_0013:  newobj     instance void [mscorlib]System.ArgumentNullException::.ctor(string)
    IL_0018:  throw

    IL_0019:  ldarg.1
    IL_001a:  call       bool [mscorlib]System.String::IsNullOrEmpty(string)
    IL_001f:  ldc.i4.0
    IL_0020:  ceq
    IL_0022:  stloc.1
    IL_0023:  ldloc.1
    IL_0024:  brtrue.s   IL_0031

    IL_0026:  ldstr      "right"
    IL_002b:  newobj     instance void [mscorlib]System.ArgumentNullException::.ctor(string)
    IL_0030:  throw

    IL_0031:  ldarg.0
    IL_0032:  ldarg.1
    IL_0033:  call       bool [mscorlib]System.String::op_Inequality(string,
                                                                     string)
    IL_0038:  ldc.i4.0
    IL_0039:  ceq
    IL_003b:  stloc.1
    IL_003c:  ldloc.1
    IL_003d:  brtrue.s   IL_0054

    IL_003f:  nop
    IL_0040:  ldstr      "[[{0}]] != [[{1}]]"
    IL_0045:  ldarg.0
    IL_0046:  ldarg.1
    IL_0047:  call       string [mscorlib]System.String::Format(string,
                                                                object,
                                                                object)
    IL_004c:  stloc.0
    IL_004d:  ldloc.0
    IL_004e:  newobj     instance void [mscorlib]System.Exception::.ctor(string)
    IL_0053:  throw

    IL_0054:  ret
  } // end of method Assert::AreEqual

} // end of class Test.Assert


// =============================================================

// *********** DISASSEMBLY COMPLETE ***********************
// WARNING: Created Win32 resource file nonvirtualcalls_tailcall.res