summaryrefslogtreecommitdiff
path: root/test/files/neg/t7292-deprecation.check
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2013-03-24 03:19:12 +0100
committerSimon Ochsenreither <simon@ochsenreither.de>2013-04-04 15:25:30 +0200
commit36da62238be6efd92f2e59d9df6a4b29c4c7dae7 (patch)
treec92363e65aac5db90e6da3d78b28f29dc40e9385 /test/files/neg/t7292-deprecation.check
parentb575c1ed131a578a18239e3922c1ea8b7dd188a2 (diff)
downloadscala-36da62238be6efd92f2e59d9df6a4b29c4c7dae7.tar.gz
scala-36da62238be6efd92f2e59d9df6a4b29c4c7dae7.tar.bz2
scala-36da62238be6efd92f2e59d9df6a4b29c4c7dae7.zip
SI-7292 Deprecate octal escape literals
Diffstat (limited to 'test/files/neg/t7292-deprecation.check')
-rw-r--r--test/files/neg/t7292-deprecation.check12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/t7292-deprecation.check b/test/files/neg/t7292-deprecation.check
new file mode 100644
index 0000000000..c7e6111962
--- /dev/null
+++ b/test/files/neg/t7292-deprecation.check
@@ -0,0 +1,12 @@
+t7292-deprecation.scala:2: warning: Octal escape literals are deprecated, use /u0000 instead.
+ val chr1 = '/0'
+ ^
+t7292-deprecation.scala:3: warning: Octal escape literals are deprecated, use /u0053 instead.
+ val str1 = "abc/123456"
+ ^
+t7292-deprecation.scala:4: warning: Octal escape literals are deprecated, use /n instead.
+ val lf = '/012'
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+three warnings found
+one error found