aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-08-03 16:28:50 -0700
committerGraydon Hoare <[email protected]>2010-08-03 16:28:50 -0700
commita1ecdb103d32551ffb5bf552f95c88292b7eac1c (patch)
treeb9de43929b763d6acf5e4348aabc4843b06a062b /src/test
parentAdd tests and fix pexp bug. Closes #141. (diff)
downloadrust-a1ecdb103d32551ffb5bf552f95c88292b7eac1c.tar.xz
rust-a1ecdb103d32551ffb5bf552f95c88292b7eac1c.zip
Fix some naughtiness of handling newlines in bracequotes and multi-line comments. Closes #142.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/multiline-comment-line-tracking.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/compile-fail/multiline-comment-line-tracking.rs b/src/test/compile-fail/multiline-comment-line-tracking.rs
new file mode 100644
index 00000000..3f555bfc
--- /dev/null
+++ b/src/test/compile-fail/multiline-comment-line-tracking.rs
@@ -0,0 +1,10 @@
+// -*- rust -*-
+// error-pattern:9:2:E
+
+/* 1
+ * 2
+ * 3
+ */
+fn main() {
+ %; // parse error on line 9, but is reported on line 6 instead.
+}