summaryrefslogtreecommitdiff
path: root/test/pending/specialized/SI-5005.check
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.check
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.check')
-rw-r--r--test/pending/specialized/SI-5005.check33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/pending/specialized/SI-5005.check b/test/pending/specialized/SI-5005.check
new file mode 100644
index 0000000000..81e8342dad
--- /dev/null
+++ b/test/pending/specialized/SI-5005.check
@@ -0,0 +1,33 @@
+[[syntax trees at end of specialize]] // newSource1
+package <empty> {
+ class C2[@specialized(scala.Boolean) U >: Nothing <: Any] extends Object {
+ def <init>(): C2[U] = {
+ C2.super.<init>();
+ ()
+ };
+ def apply(x: U): U = x;
+ <specialized> def apply$mcZ$sp(x: Boolean): Boolean = C2.this.apply(x.asInstanceOf[U]()).asInstanceOf[Boolean]()
+ };
+ class B extends Object {
+ def <init>(): B = {
+ B.super.<init>();
+ ()
+ };
+ new C2$mcZ$sp().apply$mcZ$sp(true)
+ };
+ <specialized> class C2$mcZ$sp extends C2[Boolean] {
+ <specialized> def <init>(): C2$mcZ$sp = {
+ C2$mcZ$sp.super.<init>();
+ ()
+ };
+ @inline final override <specialized> def apply(x: Boolean): Boolean = C2$mcZ$sp.this.apply$mcZ$sp(x);
+ @inline final override <specialized> def apply$mcZ$sp(x: Boolean): Boolean = x
+ }
+}
+
+[log inliner] Analyzing C2.apply count 0 with 1 blocks
+[log inliner] C2.apply blocks before inlining: 1 (2) after: 1 (2)
+[log inliner] Analyzing C2.apply$mcZ$sp count 0 with 1 blocks
+[log inliner] C2.apply$mcZ$sp blocks before inlining: 1 (8) after: 1 (8)
+[log inliner] Not inlining into apply because it is marked @inline.
+[log inliner] Not inlining into apply$mcZ$sp because it is marked @inline.