Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Mak <duncan@mono-cvs.ximian.com>2005-01-06 16:47:29 +0300
committerDuncan Mak <duncan@mono-cvs.ximian.com>2005-01-06 16:47:29 +0300
commita9a9ae9ba342f2dd8c2e6e87d6b50211aa45fffc (patch)
tree070da76a4e3ed142e6a9384aa74c1644398b1522 /mcs/errors/cs1040-2.cs
parent0464bf64e4e692151ce97f8963a06ff08efd293d (diff)
2005-01-04 Duncan Mak <duncan@ximian.com>
* cs-tokenizer.cs (xtoken): After handling traditional C-style comments, set `tokens_seen' to true. This allows us to detect misplaced preprocessor directives (i.e. not at the beginning of the a line, nor after whitespaces). In that case, report error CS1040. This fixes bug #56460. 2005-01-05 Duncan Mak <duncan@ximian.com> * mcs-expect-no-error: Removed cs1040.cs. * cs1040-2.cs: Added to track bug #56460. svn path=/trunk/mcs/; revision=38429
Diffstat (limited to 'mcs/errors/cs1040-2.cs')
-rw-r--r--mcs/errors/cs1040-2.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/errors/cs1040-2.cs b/mcs/errors/cs1040-2.cs
new file mode 100644
index 00000000000..f9a5eefd379
--- /dev/null
+++ b/mcs/errors/cs1040-2.cs
@@ -0,0 +1,5 @@
+// error CS1040: Preprocessor directives must appear as the first non-whitespace character on a line.
+// Line: 2
+// Compiler Options: -t:library
+
+/* hey */ #define a