summaryrefslogtreecommitdiff
path: root/test/pending/specialized/SI-5005.scala
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-06-07 12:46:07 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-06-07 12:46:07 -0700
commitd6a57968921b3c158d2414f8913be89d98beb541 (patch)
tree10c37868453bfdc24d6a699e094aa9c6f0b61a6e /test/pending/specialized/SI-5005.scala
parent961092b95659f9127f8a077d0060c701b4714240 (diff)
parent881641f83461b5fc23ab25d1efa08b7a760a3363 (diff)
downloadscala-d6a57968921b3c158d2414f8913be89d98beb541.tar.gz
scala-d6a57968921b3c158d2414f8913be89d98beb541.tar.bz2
scala-d6a57968921b3c158d2414f8913be89d98beb541.zip
Merge pull request #677 from axel22/feature/util-hashing2
Add the first iteration of the `util.hashing` package.
Diffstat (limited to 'test/pending/specialized/SI-5005.scala')
-rw-r--r--test/pending/specialized/SI-5005.scala36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/pending/specialized/SI-5005.scala b/test/pending/specialized/SI-5005.scala
new file mode 100644
index 0000000000..280bf0aa2d
--- /dev/null
+++ b/test/pending/specialized/SI-5005.scala
@@ -0,0 +1,36 @@
+import scala.tools.partest._
+import java.io._
+
+
+
+// I think this may be due to a bug in partest where it uses some other version
+// of the scala-library.jar - _hashCode is in line 202 currently, not 212!
+//
+// [partest] testing: [...]/files/specialized/SI-5005.scala [FAILED]
+// [partest] java.lang.NoClassDefFoundError: scala/util/MurmurHash3$
+// [partest] java.lang.NoClassDefFoundError: scala/util/MurmurHash3$
+// [partest] at scala.runtime.ScalaRunTime$._hashCode(ScalaRunTime.scala:212)
+object Test extends DirectTest {
+
+ override def extraSettings: String = "-usejavacp -Xprint:spec -optimize -Ylog:inliner -d " + testOutput.path
+
+ override def code = """
+ class C2[@specialized(Boolean) U]() {
+ @inline final def apply(x: U): U = x
+ }
+
+ class B {
+ (new C2[Boolean]())(true)
+ }
+ """
+
+ override def show(): Unit = {
+ // redirect err to out, for inliner log
+ val prevErr = System.err
+ System.setErr(System.out)
+ compile()
+ System.setErr(prevErr)
+ }
+
+ override def isDebug = false // so we don't get the newSettings warning
+}