[Mono-bugs] [Bug 376875] New: Missing volatile. prefix for external volatile fields
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 3 13:19:41 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=376875
Summary: Missing volatile. prefix for external volatile fields
Product: Mono: Compilers
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
1. Compile as a library
public class C
{
public static volatile int i;
}
2. -r:library.dll
public class Css
{
public static void Main ()
{
C.i = 12;
}
}
Expected IL
method public hidebysig static void Main() cil managed
{
.entrypoint
// Code size 11 (0xb)
.maxstack 8
IL_0000: nop
IL_0001: ldc.i4.s 12
IL_0003: volatile.
IL_0005: stsfld int32
modreq([mscorlib]System.Runtime.CompilerServices.IsVolatile)
['test-900-lib']C::i
IL_000a: ret
} // end of method Css::Main
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list