summaryrefslogtreecommitdiff
path: root/ICSharpCode.Decompiler/Tests/BooleanConsumedAsInteger.il
diff options
context:
space:
mode:
Diffstat (limited to 'ICSharpCode.Decompiler/Tests/BooleanConsumedAsInteger.il')
-rw-r--r--ICSharpCode.Decompiler/Tests/BooleanConsumedAsInteger.il59
1 files changed, 59 insertions, 0 deletions
diff --git a/ICSharpCode.Decompiler/Tests/BooleanConsumedAsInteger.il b/ICSharpCode.Decompiler/Tests/BooleanConsumedAsInteger.il
new file mode 100644
index 00000000..9e300027
--- /dev/null
+++ b/ICSharpCode.Decompiler/Tests/BooleanConsumedAsInteger.il
@@ -0,0 +1,59 @@
+.assembly extern mscorlib
+{
+ .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
+ .ver 4:0:0:0
+}
+.assembly BooleanConsumedAsInteger
+{
+ .hash algorithm 0x00008004
+ .ver 1:0:0:0
+}
+.module BooleanConsumedAsInteger.exe
+.imagebase 0x00400000
+.file alignment 0x00000200
+.stackreserve 0x00100000
+.subsystem 0x0003 // WINDOWS_CUI
+.corflags 0x00000003 // ILONLY 32BITREQUIRED
+
+.class private auto ansi beforefieldinit BooleanConsumedAsInteger.Program extends [mscorlib]System.Object
+{
+ .method public hidebysig static void Main(string[] args) cil managed
+ {
+ .entrypoint
+ .maxstack 8
+
+ ret
+ }
+
+ .method public hidebysig static int32 ReturnBoolAsInt() cil managed
+ {
+ ldnull
+ ldnull
+ call bool [mscorlib] System.Object::Equals(object, object)
+ ret
+ }
+
+ .method public hidebysig static int32 BitwiseOperationOnBool() cil managed
+ {
+ ldnull
+ ldnull
+ call bool [mscorlib] System.Object::Equals(object, object)
+ ldc.i4 255
+ and
+ ret
+ }
+
+ .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 [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ } // end of method Program::.ctor
+
+} // end of class StackTests.Program
+
+
+// =============================================================