New test.
[mono.git] / mono / tests / verifier / invalid_dup_maxstack.il
1 // Invalid CIL which breaks the ECMA-335,III,3.33 rules. 
2 // This CIL should fail verification by a conforming CLI verifier.
3
4 .method public static int32 Main() cil managed
5 {
6         .entrypoint
7         .maxstack 1
8         ldc.i4.0
9         dup // Invalid, stack larger than maxstack.
10         pop
11         ret
12 }