[Mono-bugs] [Bug 62331][Wis] New - monodis does not disply sizeof (int*) correctly
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 2 Aug 2004 21:54:01 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=62331
--- shadow/62331 2004-08-02 21:54:01.000000000 -0400
+++ shadow/62331.tmp.1394 2004-08-02 21:54:01.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 62331
+Product: Mono: Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bmaurer@users.sf.net
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: monodis does not disply sizeof (int*) correctly
+
+Compile
+
+unsafe class X {
+ static void Main ()
+ {
+ System.Console.WriteLine (sizeof (int*));
+ }
+}
+
+(with /unsafe, of course). And monodis the exe. You get:
+
+ IL_0000: sizeof int32
+ IL_0006: call void class [mscorlib]System.Console::WriteLine(int32)
+ IL_000b: ret
+
+However, this is incorrect. It should say sizeof int32*. The file will not
+round trip.