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-07 13:29:25 +0300
committerDuncan Mak <duncan@mono-cvs.ximian.com>2005-01-07 13:29:25 +0300
commite24846d3eee877269e97490096104240e97c5b3e (patch)
tree336db6c9ce763a709c4ec9a3e43c28691dca2b72 /mcs/tests/test-332.cs
parentdbf0908edc1f4554e9d01aafd77f96d051955e3b (diff)
2005-01-06 Duncan Mak <duncan@ximian.com>
* cs-tokenizer.cs (xtoken): Redo the work for signaling CS1040 because the previous change led to incorrect reporting of CS1032 ("Cannot define/undefine preprocessor symbols after first token in file"). Instead of using `tokens_seen' as the only flag that triggers CS1040, introduce `comments_seen'. This new flag is used to signify having seen comments on the current line, so it is unset after a newline. * test-332.cs: New test for tracking #56460. svn path=/trunk/mcs/; revision=38478
Diffstat (limited to 'mcs/tests/test-332.cs')
-rw-r--r--mcs/tests/test-332.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/mcs/tests/test-332.cs b/mcs/tests/test-332.cs
new file mode 100644
index 00000000000..b272f22d8d9
--- /dev/null
+++ b/mcs/tests/test-332.cs
@@ -0,0 +1,5 @@
+// Compiler options: -t:library
+
+/* foo */
+#define FOO
+