[Mono-bugs] [Bug 532630] New: gmcs doesn't trim defines
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Aug 19 17:19:20 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=532630
Summary: gmcs doesn't trim defines
Classification: Mono
Product: Mono: Compilers
Version: 2.4.x
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: jpobst at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Given this program:
---
using System;
class Program
{
static void Main ()
{
#if CAT
Console.WriteLine ("Cat");
#endif
#if DOG
Console.WriteLine ("Dog");
#endif
}
}
---
With csc, you can compile it like this:
csc -d:"CAT; DOG" test.cs
and it will compile and print:
Cat
Dog
---
Attempting to compile with gmcs:
gmcs -d:"CAT; DOG" test.cs
emits the warning:
warning CS2029: Invalid conditional define symbol ` DOG'
Compilation succeeded - 1 warning(s)
it prints:
Cat
---
--
Configure bugmail: http://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