diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/elidable.check | 1 | ||||
-rw-r--r-- | test/files/run/elidable.flags | 1 | ||||
-rw-r--r-- | test/files/run/elidable.scala | 14 |
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() + } +} |