mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Move codegen tests on old language versions under oldLanguageVersions/
This directory is skipped in JVM IR test generator, so they won't show up as failed anymore. Note that only failing tests are moved to oldLanguageVersions/. Tests which already pass are still being run. It may be useful not to break them in case we _do_ need to support some pre-1.3 language feature switches in JVM IR.
This commit is contained in:
24
compiler/testData/codegen/bytecodeText/oldLanguageVersions/noInlineJavaProtectedConstants.kt
vendored
Normal file
24
compiler/testData/codegen/bytecodeText/oldLanguageVersions/noInlineJavaProtectedConstants.kt
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// !LANGUAGE: -InlineConstVals
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// FILE: first/Foo.java
|
||||
|
||||
package first;
|
||||
|
||||
public class Foo {
|
||||
protected static final int FOO = 42;
|
||||
}
|
||||
|
||||
// FILE: bar.kt
|
||||
|
||||
package second
|
||||
|
||||
import first.Foo
|
||||
|
||||
class Bar : Foo() {
|
||||
fun bar() = FOO
|
||||
}
|
||||
|
||||
// @second/BarKt.class
|
||||
// 1 INVOKESTATIC
|
||||
// 0 GETSTATIC
|
||||
// 1 BIPUSH 42
|
||||
Reference in New Issue
Block a user