summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
authorBurak Emir <emir@epfl.ch>2007-06-22 10:33:37 +0000
committerBurak Emir <emir@epfl.ch>2007-06-22 10:33:37 +0000
commit4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d (patch)
treee4f5be61e8271d2fa30dfd4f3d8a42b46a86fbff /test/pending
parented3f1d101d6008629a2645e5887ba2485932acea (diff)
downloadscala-4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d.tar.gz
scala-4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d.tar.bz2
scala-4e18a7e8d40efc59ff9d3c0a87eb04c67343e48d.zip
test cases for unbox problem
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/pos/switchUnbox.flags1
-rw-r--r--test/pending/pos/switchUnbox.scala11
2 files changed, 12 insertions, 0 deletions
diff --git a/test/pending/pos/switchUnbox.flags b/test/pending/pos/switchUnbox.flags
new file mode 100644
index 0000000000..ec1ad20e3a
--- /dev/null
+++ b/test/pending/pos/switchUnbox.flags
@@ -0,0 +1 @@
+-Xsqueeze:on
diff --git a/test/pending/pos/switchUnbox.scala b/test/pending/pos/switchUnbox.scala
new file mode 100644
index 0000000000..a97bff5521
--- /dev/null
+++ b/test/pending/pos/switchUnbox.scala
@@ -0,0 +1,11 @@
+// this test has accompanying .flags file
+// that contains -Xsqueeze:on
+//
+object Foo {
+ var xyz: (int, String) = (1, "abc")
+ xyz._1 match {
+ case 1 => Console.println("OK")
+ case 2 => Console.println("OK")
+ case _ => Console.println("KO")
+ }
+}