summaryrefslogtreecommitdiff
path: root/test/pending
diff options
context:
space:
mode:
Diffstat (limited to 'test/pending')
-rw-r--r--test/pending/run/t8582-bcode.check2
-rw-r--r--test/pending/run/t8582-bcode.flags1
-rw-r--r--test/pending/run/t8582-bcode.scala16
3 files changed, 19 insertions, 0 deletions
diff --git a/test/pending/run/t8582-bcode.check b/test/pending/run/t8582-bcode.check
new file mode 100644
index 0000000000..7e96756986
--- /dev/null
+++ b/test/pending/run/t8582-bcode.check
@@ -0,0 +1,2 @@
+class p1.p2.Singleton$Singleton$
+List(class p1.p2.Singleton$Singleton$Singleton$)
diff --git a/test/pending/run/t8582-bcode.flags b/test/pending/run/t8582-bcode.flags
new file mode 100644
index 0000000000..c30091d3de
--- /dev/null
+++ b/test/pending/run/t8582-bcode.flags
@@ -0,0 +1 @@
+-Ybackend:GenBCode
diff --git a/test/pending/run/t8582-bcode.scala b/test/pending/run/t8582-bcode.scala
new file mode 100644
index 0000000000..844ab8ac14
--- /dev/null
+++ b/test/pending/run/t8582-bcode.scala
@@ -0,0 +1,16 @@
+package p1 {
+ package p2 {
+ object Singleton {
+ object Singleton {
+ object Singleton
+ }
+ }
+ }
+}
+
+
+object Test extends App {
+ import p1.p2._
+ println(Singleton.Singleton.getClass)
+ println(Singleton.Singleton.getClass.getDeclaredClasses.toList)
+}