diff options
author | Paul Phillips <paulp@improving.org> | 2011-02-07 08:07:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-02-07 08:07:59 +0000 |
commit | a589cb084bf93facd9a6bd69a2b57de87d0d9134 (patch) | |
tree | 8819a5cbbb7949de6c87f24abdc84cda0c536120 /test/files/run | |
parent | 2060b631ab49c2eb65c37d06e322b9294dbb0b22 (diff) | |
download | scala-a589cb084bf93facd9a6bd69a2b57de87d0d9134.tar.gz scala-a589cb084bf93facd9a6bd69a2b57de87d0d9134.tar.bz2 scala-a589cb084bf93facd9a6bd69a2b57de87d0d9134.zip |
Guess I can't have a javap test with no javap.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/javap.check | 18 | ||||
-rw-r--r-- | test/files/run/javap.scala | 24 |
2 files changed, 0 insertions, 42 deletions
diff --git a/test/files/run/javap.check b/test/files/run/javap.check deleted file mode 100644 index 1985fd611d..0000000000 --- a/test/files/run/javap.check +++ /dev/null @@ -1,18 +0,0 @@ -Arguments: '' -public class Bippy extends java.lang.Object implements scala.ScalaObject{ -public scala.collection.immutable.List f(scala.collection.immutable.List); -public Bippy(); -Arguments: '-v' -public class Bippy extends java.lang.Object implements scala.ScalaObject -public #28= #25 of #27; //Bippy=class Bippy of class -public scala.collection.immutable.List f(scala.collection.immutable.List); -public Bippy(); -Arguments: '-s' -public class Bippy extends java.lang.Object implements scala.ScalaObject{ -public scala.collection.immutable.List f(scala.collection.immutable.List); -public Bippy(); -Arguments: '-private' -public class Bippy extends java.lang.Object implements scala.ScalaObject{ -private int privateMethod(); -public scala.collection.immutable.List f(scala.collection.immutable.List); -public Bippy(); diff --git a/test/files/run/javap.scala b/test/files/run/javap.scala deleted file mode 100644 index 241a83fa6f..0000000000 --- a/test/files/run/javap.scala +++ /dev/null @@ -1,24 +0,0 @@ -import scala.tools.nsc.interpreter._ - -object Test { - def run(args: String) = { - println("Arguments: '" + args + "'") - ILoop.run(""" - |class Bippy { - | private def privateMethod = 5 - | def f[T <: List[_]](x: T): T = x - |} - | - |:javap %s Bippy - """.stripMargin.format(args)).lines map (_.trim) filter { line => - (line startsWith "private") || (line startsWith "public") - } foreach println - } - - def main(args: Array[String]): Unit = { - run("") - run("-v") - run("-s") - run("-private") - } -} |