Update test data of wrongInlineTarget to 1.4
This commit is contained in:
Vendored
-37
@@ -1,37 +0,0 @@
|
|||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:6:5: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineFun {}
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:7:5: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineGetter
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:8:5: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineGetter = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:11:5: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineSetter = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:13:5: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
allInline
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:14:5: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
allInline = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:17:10: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
base.inlineFunBase {}
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:18:10: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
base.inlineGetterBase
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:19:10: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
base.inlineGetterBase = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:22:10: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
base.inlineSetterBase = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:24:10: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
base.allInlineBase
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/source.kt:25:10: error: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
base.allInlineBase = 1
|
|
||||||
^
|
|
||||||
COMPILATION_ERROR
|
|
||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly.kt:8:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineFunBase {}
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly.kt:9:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineGetterBase
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly.kt:10:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineGetterBase = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly.kt:13:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
inlineSetterBase = 1
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly.kt:15:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
allInlineBase
|
|
||||||
^
|
|
||||||
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly.kt:16:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
|
||||||
allInlineBase = 1
|
|
||||||
^
|
|
||||||
OK
|
|
||||||
Vendored
+19
@@ -0,0 +1,19 @@
|
|||||||
|
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly_1_3.kt:8:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
||||||
|
inlineFunBase {}
|
||||||
|
^
|
||||||
|
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly_1_3.kt:9:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
||||||
|
inlineGetterBase
|
||||||
|
^
|
||||||
|
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly_1_3.kt:10:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
||||||
|
inlineGetterBase = 1
|
||||||
|
^
|
||||||
|
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly_1_3.kt:13:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
||||||
|
inlineSetterBase = 1
|
||||||
|
^
|
||||||
|
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly_1_3.kt:15:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
||||||
|
allInlineBase
|
||||||
|
^
|
||||||
|
compiler/testData/compileKotlinAgainstCustomBinaries/wrongInlineTarget/warningsOnly_1_3.kt:16:9: warning: cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
|
||||||
|
allInlineBase = 1
|
||||||
|
^
|
||||||
|
OK
|
||||||
+5
-13
@@ -476,21 +476,13 @@ class CompileKotlinAgainstCustomBinariesTest : AbstractKotlinCompilerIntegration
|
|||||||
|
|
||||||
fun testWrongInlineTarget() {
|
fun testWrongInlineTarget() {
|
||||||
val library = compileLibrary("library", additionalOptions = listOf("-jvm-target", "1.8"))
|
val library = compileLibrary("library", additionalOptions = listOf("-jvm-target", "1.8"))
|
||||||
compileKotlin(
|
|
||||||
"source.kt", tmpdir, listOf(library),
|
compileKotlin("source.kt", tmpdir, listOf(library))
|
||||||
/*all warning here are erased by compiler cause or error presence, see next test for warnings*/
|
|
||||||
expectedFileName = "errorsAndErasedWarnings.txt"
|
|
||||||
)
|
|
||||||
|
|
||||||
compileKotlin(
|
compileKotlin(
|
||||||
"warningsOnly.kt", tmpdir, listOf(library),
|
"warningsOnly_1_3.kt", tmpdir, listOf(library),
|
||||||
expectedFileName = "warningsOnly.txt"
|
additionalOptions = listOf("-language-version", "1.3"),
|
||||||
)
|
expectedFileName = "warningsOnly_1_3.txt"
|
||||||
|
|
||||||
compileKotlin(
|
|
||||||
"source.kt", tmpdir, listOf(library),
|
|
||||||
additionalOptions = listOf("-XXLanguage:+ProperInlineFromHigherPlatformDiagnostic"),
|
|
||||||
expectedFileName = "properError.txt"
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user