2009-09-01 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / metadata-verifier / cli-cattr-tests.md
1 cattr-without-named-args {
2         assembly assembly-with-cattr-enc.exe
3
4         #bad prolog
5         valid offset blob.i (table-row (0x0C 0) + 4) + 1 set-ushort 0x0001
6         invalid offset blob.i (table-row (0x0C 0) + 4) + 1 set-ushort 0x0000
7         invalid offset blob.i (table-row (0x0C 0) + 4) + 1 set-ushort 0x0099
8         invalid offset blob.i (table-row (0x0C 0) + 4) + 1 set-ushort 0x0101
9
10         #WARNING: peverify don't check custom attributes format beyond the prolog
11         #so it's pointless to use it for this.
12         #We'll take the easy road as well and when verifying the encoded data
13         #assume that the target constructor can be decoded and use the runtime signature.  
14
15         #bad size
16         invalid offset blob.i (table-row (0x0C 0) + 4) + 0 set-byte 0x0
17         invalid offset blob.i (table-row (0x0C 0) + 4) + 0 set-byte 0x1
18
19         #set size to something huge
20         invalid offset blob.i (table-row (0x0C 0) + 4) + 0 set-byte 0xBF,
21                         offset blob.i (table-row (0x0C 0) + 4) + 1 set-byte 0xFF,
22                         offset blob.i (table-row (0x0C 0) + 4) + 2 set-ushort 0x0001
23
24 }