diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2005-12-09 13:24:45 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2005-12-09 13:24:45 +0300 |
commit | e5b7d1e1fe00b5d25f2a8a726cc8687ac507ba28 (patch) | |
tree | 55abd274178e469605bd5b1fdc86c68fa8f9f8d9 /mcs/tests/test-476.cs | |
parent | 94811f231e9cd514750515a49265f1af8a70c332 (diff) |
2005-12-09 Atsushi Enomoto <atsushi@ximian.com>
* cs-tokenizer.cs : fixed bug #75984:
- #warning and #error should not be handled when the source line
is disabled.
- #line is not checked strictly when the source line is disabled.
- #define and #undef is on the other hand checked strictly at any
state.
* test-476.cs : test for bug #75984.
* test-60.cs : unrecognized directive should be handled as an error
even in a disable line (the behavior has changed in 2.0).
* known-issues-gmcs : added above cases.
svn path=/trunk/mcs/; revision=54153
Diffstat (limited to 'mcs/tests/test-476.cs')
-rw-r--r-- | mcs/tests/test-476.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mcs/tests/test-476.cs b/mcs/tests/test-476.cs new file mode 100644 index 00000000000..60787efbfa9 --- /dev/null +++ b/mcs/tests/test-476.cs @@ -0,0 +1,21 @@ +#if false +#line hahaha +#error +#pragma warning disable 3005 // wrong directive on csc 1.x + public class Foo + { + } +#pragma warning restore // wrong directive on csc 1.x + +#region // blank -> no error +#endregion + +#endif // of funky directives + +public class Test +{ + public static void Main () + { + } +} + |