summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-09-14 12:22:11 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-09-14 12:22:11 -0700
commit261b1c785668ae42a29d9217cc4a8f305a724e2f (patch)
tree77024bdb9e9885b4cc84ea0095eaa84864caeb5d /test/files
parent83c1b1062957e50e5336c1b3409e54e0a5cce275 (diff)
parent47587dca4d3fb7c171cff21587b42f40bab77e21 (diff)
downloadscala-261b1c785668ae42a29d9217cc4a8f305a724e2f.tar.gz
scala-261b1c785668ae42a29d9217cc4a8f305a724e2f.tar.bz2
scala-261b1c785668ae42a29d9217cc4a8f305a724e2f.zip
Merge pull request #1304 from paulp/topic/empty-array-optimization
Topic/empty array optimization
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/empty-array.check3
-rw-r--r--test/files/run/empty-array.scala8
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/empty-array.check b/test/files/run/empty-array.check
new file mode 100644
index 0000000000..bb0b1cf658
--- /dev/null
+++ b/test/files/run/empty-array.check
@@ -0,0 +1,3 @@
+0
+0
+0
diff --git a/test/files/run/empty-array.scala b/test/files/run/empty-array.scala
new file mode 100644
index 0000000000..e56c86df5c
--- /dev/null
+++ b/test/files/run/empty-array.scala
@@ -0,0 +1,8 @@
+object Test {
+ def main(args: Array[String]): Unit = {
+ println(Byte.emptyArray.length)
+ println(Double.emptyArray.length)
+ println(Boolean.emptyArray.length)
+ // okay okay okay
+ }
+}