diff --git a/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala b/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala index d0e1a2c1540c..e4eae741edbd 100644 --- a/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala +++ b/compiler/test/dotty/tools/dotc/BootstrappedOnlyCompilationTests.scala @@ -24,7 +24,7 @@ class BootstrappedOnlyCompilationTests { @Test def posMacros: Unit = { implicit val testGroup: TestGroup = TestGroup("compilePosMacros") aggregateTests( - compileFilesInDir("tests/bench", defaultOptions), + compileFilesInDir("tests/bench", defaultOptions.without("-Yno-deep-subtypes")), compileFilesInDir("tests/pos-macros", defaultOptions), compileFilesInDir("tests/pos-custom-args/semanticdb", defaultOptions.and("-Xsemanticdb")), compileDir("tests/pos-special/i7592", defaultOptions.and("-Yretain-trees")), diff --git a/tests/bench/tuple.scala b/tests/bench/tuple.scala new file mode 100644 index 000000000000..b8a8e680f796 --- /dev/null +++ b/tests/bench/tuple.scala @@ -0,0 +1,9 @@ +object Test { + val xs0 = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) + assert(xs0(15) == 16) + // 2.787s + + val xs1 = xs0 ++ xs0 + assert(xs1(31) == 16) + // 3.354s +}