summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-03-23 16:52:51 +0000
committerPaul Phillips <paulp@improving.org>2010-03-23 16:52:51 +0000
commit26a2abff274fb7facfadcf5e9b66d805a1b670b1 (patch)
tree14a800206ce137e9e1e7fd3e6fbf4aeb8703d307 /test
parent011377a2c73aee41673544479ee5db85fe143917 (diff)
downloadscala-26a2abff274fb7facfadcf5e9b66d805a1b670b1.tar.gz
scala-26a2abff274fb7facfadcf5e9b66d805a1b670b1.tar.bz2
scala-26a2abff274fb7facfadcf5e9b66d805a1b670b1.zip
Although it was working fine, a test case for @...
Although it was working fine, a test case for @elidable to make sure that state of affairs continues. No review.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/elidable.check1
-rw-r--r--test/files/run/elidable.flags1
-rw-r--r--test/files/run/elidable.scala14
3 files changed, 16 insertions, 0 deletions
diff --git a/test/files/run/elidable.check b/test/files/run/elidable.check
new file mode 100644
index 0000000000..4ce04f0040
--- /dev/null
+++ b/test/files/run/elidable.check
@@ -0,0 +1 @@
+Good for me, I was not elided.
diff --git a/test/files/run/elidable.flags b/test/files/run/elidable.flags
new file mode 100644
index 0000000000..93fd3d5317
--- /dev/null
+++ b/test/files/run/elidable.flags
@@ -0,0 +1 @@
+-Xelide-below 900
diff --git a/test/files/run/elidable.scala b/test/files/run/elidable.scala
new file mode 100644
index 0000000000..e0ac2ed0db
--- /dev/null
+++ b/test/files/run/elidable.scala
@@ -0,0 +1,14 @@
+import annotation._
+import elidable._
+
+object Test {
+ @elidable(FINEST) def f1() = assert(false, "Should have been elided.")
+ @elidable(INFO) def f2() = assert(false, "Should have been elided.")
+ @elidable(SEVERE) def f3() = println("Good for me, I was not elided.")
+
+ def main(args: Array[String]): Unit = {
+ f1()
+ f2()
+ f3()
+ }
+}