summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/iq.check1
-rw-r--r--test/files/run/iq.scala25
2 files changed, 26 insertions, 0 deletions
diff --git a/test/files/run/iq.check b/test/files/run/iq.check
new file mode 100644
index 0000000000..53a90bffae
--- /dev/null
+++ b/test/files/run/iq.check
@@ -0,0 +1 @@
+Empty
diff --git a/test/files/run/iq.scala b/test/files/run/iq.scala
new file mode 100644
index 0000000000..67a1a41296
--- /dev/null
+++ b/test/files/run/iq.scala
@@ -0,0 +1,25 @@
+/* $Id$ */
+
+object iq {
+ def main = {
+ val q:scala.collection.immutable.Queue[Int] =
+ scala.collection.immutable.Queue.Empty;
+ if(q.isEmpty) {
+ java.lang.System.out.println("Empty");
+ }
+
+ val q2 = q + 42;
+
+ if(q2.isEmpty) {
+ java.lang.System.out.println("Empty");
+ }
+
+ }
+}
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ iq.main;
+ ();
+ }
+}