Merge pull request 2899 from krytarowski/netbsd-support-1
[mono.git] / mono / tests / verifier / invalid_ldftn_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                 .emitbyte 0xFE
36                 .emitbyte 0x06
37                 .emitbyte 0xAA
38                 .emitbyte 0xAA
39                 .emitbyte 0x00
40                 .emitbyte 0x06
41                 pop
42                 ret
43
44         }
45 }
46
47