summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/long-running/jvm/memleak2_actor.scala4
-rw-r--r--test/pending/neg/t2078.scala9
2 files changed, 11 insertions, 2 deletions
diff --git a/test/long-running/jvm/memleak2_actor.scala b/test/long-running/jvm/memleak2_actor.scala
index eeb017f086..1673b12dac 100644
--- a/test/long-running/jvm/memleak2_actor.scala
+++ b/test/long-running/jvm/memleak2_actor.scala
@@ -22,7 +22,7 @@ object Test {
def main(args: Array[String]) {
val rt = Runtime.getRuntime()
- for (o <- 1 to 200000) {
+ for (o <- 1 to 300000) {
println("Outer [2AN] "+o)
var a: List[A] = Nil
for (i <- 1 to 10000) {
@@ -32,7 +32,7 @@ object Test {
t ! Start
}
for (act <- a) act ! EndMe
- rt.gc()
+ //rt.gc()
println("Free "+z(rt.freeMemory())+" total "+z(rt.totalMemory()))
}
}
diff --git a/test/pending/neg/t2078.scala b/test/pending/neg/t2078.scala
new file mode 100644
index 0000000000..a697afc646
--- /dev/null
+++ b/test/pending/neg/t2078.scala
@@ -0,0 +1,9 @@
+class A[-S](y : S) {
+ val f = new { val x = y }
+}
+
+object Test extends Application {
+ val a = new A(1)
+ val b = a : A[Nothing]
+ b.f.x
+}