diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2016-04-11 13:24:46 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2016-04-12 12:01:36 +0200 |
commit | d176f102bb6d0a6467e510583e61f363ff76d75e (patch) | |
tree | 89f37c90629303c820a1c435e40cf731e4f7bab7 /test/pending | |
parent | 33e71061d63d08ee23e28d9a43ad601afa74e043 (diff) | |
download | scala-d176f102bb6d0a6467e510583e61f363ff76d75e.tar.gz scala-d176f102bb6d0a6467e510583e61f363ff76d75e.tar.bz2 scala-d176f102bb6d0a6467e510583e61f363ff76d75e.zip |
Move test run/origins.scala to pending
It tests an internal debugging tool which does not appear to work as
intented. If anyone can compile and run that test and get an output
that looks like the check file, I'd be interested to know. Origins does
not seem to support the kind of stack traces that scalac currently
emits.
Diffstat (limited to 'test/pending')
-rw-r--r-- | test/pending/run/origins.check | 6 | ||||
-rw-r--r-- | test/pending/run/origins.flags | 1 | ||||
-rw-r--r-- | test/pending/run/origins.scala | 21 |
3 files changed, 28 insertions, 0 deletions
diff --git a/test/pending/run/origins.check b/test/pending/run/origins.check new file mode 100644 index 0000000000..b12cb6e38f --- /dev/null +++ b/test/pending/run/origins.check @@ -0,0 +1,6 @@ + +>> Origins tag 'boop' logged 65 calls from 3 distinguished sources. + + 50 Test$$anonfun$f3$1.apply(origins.scala:16) + 10 Test$$anonfun$f2$1.apply(origins.scala:15) + 5 Test$$anonfun$f1$1.apply(origins.scala:14) diff --git a/test/pending/run/origins.flags b/test/pending/run/origins.flags new file mode 100644 index 0000000000..690753d807 --- /dev/null +++ b/test/pending/run/origins.flags @@ -0,0 +1 @@ +-no-specialization -Ydelambdafy:inline
\ No newline at end of file diff --git a/test/pending/run/origins.scala b/test/pending/run/origins.scala new file mode 100644 index 0000000000..6529351d3c --- /dev/null +++ b/test/pending/run/origins.scala @@ -0,0 +1,21 @@ +import scala.reflect.internal.util.Origins + +package goxbox { + object Socks { + val origins = Origins("boop") + + def boop(x: Int): Int = origins { 5 } + } +} + +object Test { + import goxbox.Socks.boop + + def f1() = 1 to 5 map boop + def f2() = 1 to 10 map boop + def f3() = 1 to 50 map boop + + def main(args: Array[String]): Unit = { + f1() ; f2() ; f3() + } +} |