Merge pull request #2897 from kumpera/marshal_fixes
[mono.git] / mono / tests / verifier / invalid_ldvirtftn_invalid_token_out_of_bounds.il
1 /*
2 This test using a token that overflows the methoddef table
3 */
4 .assembly extern mscorlib
5 {
6   .ver 2:0:0:0
7   .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
8 }
9 .assembly 'bla'
10 {
11   .hash algorithm 0x00008004
12   .ver  0:0:0:0
13 }
14 .module ld_type.exe
15
16 .class public auto ansi beforefieldinit Driver
17         extends [mscorlib]System.Object
18 {
19         .method public static void Method ()
20         {
21                 ret
22         }
23
24         .method public virtual void VirtMethod ()
25         {
26                 ret
27         }
28
29         .method public static int32 Main ()
30         {
31                 .entrypoint
32                 .maxstack 2
33                 .locals init (int32 bla)
34                 nop
35                 newobj void object::.ctor()
36                 .emitbyte 0xFE
37                 .emitbyte 0x07
38                 .emitbyte 0xAA
39                 .emitbyte 0xAA
40                 .emitbyte 0x00
41                 .emitbyte 0x06
42                 pop
43                 ret
44
45         }
46 }
47
48