From 1d52fb2e262890ae01bda2f580707436291aa3d3 Mon Sep 17 00:00:00 2001 From: Ilmir Usmanov Date: Fri, 28 Dec 2018 19:49:35 +0300 Subject: [PATCH] Fix test data --- .../codegen/bytecodeText/localInitializationLVT/boxing.kt | 2 +- .../codegen/bytecodeText/localInitializationLVT/generics.kt | 6 ++++-- .../bytecodeText/localInitializationLVT/inlineClass.kt | 2 +- .../codegen/bytecodeText/localInitializationLVT/lateinit.kt | 2 +- .../codegen/bytecodeText/localInitializationLVT/run.kt | 2 +- .../codegen/bytecodeText/localInitializationLVT/var.kt | 2 +- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/compiler/testData/codegen/bytecodeText/localInitializationLVT/boxing.kt b/compiler/testData/codegen/bytecodeText/localInitializationLVT/boxing.kt index dab99f34506..4ff0ddb8e3f 100644 --- a/compiler/testData/codegen/bytecodeText/localInitializationLVT/boxing.kt +++ b/compiler/testData/codegen/bytecodeText/localInitializationLVT/boxing.kt @@ -9,4 +9,4 @@ fun test(): java.lang.Integer { } // 2 ASTORE 0 -// 1 LOCALVARIABLE c Ljava/lang/Integer; L1 L10 0 \ No newline at end of file +// 1 LOCALVARIABLE c Ljava/lang/Integer; L1 L11 0 \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt b/compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt index a68fd3cb9fb..a9f44d895d3 100644 --- a/compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt +++ b/compiler/testData/codegen/bytecodeText/localInitializationLVT/generics.kt @@ -12,5 +12,7 @@ fun test() { foo(0.0f) } -// 2 ASTORE 1 -// 1 LOCALVARIABLE t\$iv Ljava/lang/Object; L2 L11 1 \ No newline at end of file +// two in foo and two in test + +// 4 ASTORE 2 +// 1 LOCALVARIABLE t\$iv Ljava/lang/Object; L3 L13 2 \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClass.kt b/compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClass.kt index 761bdeebd53..c89e6d420a1 100644 --- a/compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClass.kt +++ b/compiler/testData/codegen/bytecodeText/localInitializationLVT/inlineClass.kt @@ -9,4 +9,4 @@ fun test(): UInt { } // 2 ISTORE 0 -// 1 LOCALVARIABLE c I L1 L10 0 \ No newline at end of file +// 1 LOCALVARIABLE c I L1 L11 0 \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeText/localInitializationLVT/lateinit.kt b/compiler/testData/codegen/bytecodeText/localInitializationLVT/lateinit.kt index fc196010485..6ca95e61539 100644 --- a/compiler/testData/codegen/bytecodeText/localInitializationLVT/lateinit.kt +++ b/compiler/testData/codegen/bytecodeText/localInitializationLVT/lateinit.kt @@ -9,4 +9,4 @@ fun test(): Char { } // 2 ASTORE 0 -// 1 LOCALVARIABLE c Ljava/lang/Object; L1 L11 0 \ No newline at end of file +// 1 LOCALVARIABLE c Ljava/lang/Object; L1 L12 0 \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt b/compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt index be9fa84327b..e4492232e56 100644 --- a/compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt +++ b/compiler/testData/codegen/bytecodeText/localInitializationLVT/run.kt @@ -11,4 +11,4 @@ fun test(): Char { // The first on declaration, the other on initialization // 2 ISTORE 0 -// 1 LOCALVARIABLE c C L1 L13 0 \ No newline at end of file +// 1 LOCALVARIABLE c C L1 L14 0 \ No newline at end of file diff --git a/compiler/testData/codegen/bytecodeText/localInitializationLVT/var.kt b/compiler/testData/codegen/bytecodeText/localInitializationLVT/var.kt index 27814e23522..4639ea6fe78 100644 --- a/compiler/testData/codegen/bytecodeText/localInitializationLVT/var.kt +++ b/compiler/testData/codegen/bytecodeText/localInitializationLVT/var.kt @@ -9,4 +9,4 @@ fun test(): Char { } // 1 ASTORE 0 -// 1 LOCALVARIABLE c Lkotlin/jvm/internal/Ref\$CharRef; L1 L10 0 \ No newline at end of file +// 1 LOCALVARIABLE c Lkotlin/jvm/internal/Ref\$CharRef; L1 L11 0 \ No newline at end of file