Skip to content

Commit 941165b

Browse files
committed
Flagless finally comes to jvm tests
1 parent bba7e69 commit 941165b

File tree

11 files changed

+9
-9
lines changed

11 files changed

+9
-9
lines changed

test/files/jvm/bytecode-test-example.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/jvm/bytecode-test-example/Foo_1.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scalac: -opt:l:none
12
class Foo_1 {
23
def foo(x: AnyRef): Int = {
34
val bool = x == null

test/files/jvm/bytecode-test-example/Test.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scalac: -opt:l:none
12
import scala.tools.partest.BytecodeTest
23

34
import scala.tools.nsc.util.JavaClassPath

test/files/jvm/matchbox.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/jvm/matchbox/Test.scala

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import scala.tools.partest.BytecodeTest
2-
import scala.tools.asm
3-
import asm.ClassReader
4-
import asm.tree
5-
import scala.collection.JavaConverters._
1+
// scalac: -opt:l:method -Xlint
2+
import scala.jdk.CollectionConverters._
63
import scala.reflect.{classTag, ClassTag}
4+
import scala.tools.asm, asm.ClassReader, asm.tree
5+
import scala.tools.partest.BytecodeTest
76

87
object Test extends BytecodeTest {
98
def internalName[T <: AnyRef : ClassTag]: String =

test/files/jvm/matchbox/matchbox_1.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scalac: -opt:l:method
12
object Matchbox {
23
import scala.{specialized => sp}
34

test/files/jvm/t10512a.flags

Whitespace-only changes.

test/files/jvm/t8582.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/jvm/t8582.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// scalac: -deprecation
12
import scala.tools.partest.BytecodeTest
23
import scala.jdk.CollectionConverters._
34

test/files/jvm/unreachable/Foo_1.flags

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)