Update spec black box tests
This commit is contained in:
committed by
Mikhael Bogdanov
parent
baaa615e09
commit
cba224b7b8
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/13.exceptions.runtime.txt
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
java.lang.VerifyError: Bad type on operand stack
|
||||
Exception Details:
|
||||
Location:
|
||||
Foo$Companion.<init>()V @2: checkcast
|
||||
Reason:
|
||||
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
|
||||
Current Frame:
|
||||
bci: @2
|
||||
flags: { flagThisUninit }
|
||||
locals: { uninitializedThis }
|
||||
stack: { uninitializedThis, uninitializedThis }
|
||||
Bytecode:
|
||||
0x0000000: 2a2a c000 02b6 000a b700 0db1
|
||||
|
||||
Foo.<clinit>(13.kt)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 13
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
companion object : Foo(prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo(42) == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/14.exceptions.runtime.txt
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
java.lang.ExceptionInInitializerError
|
||||
_14Kt.box(14.kt:17)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 14
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
companion object MyCompanion : Foo(Foo.prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo(42) == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/15.exceptions.runtime.txt
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
java.lang.ExceptionInInitializerError
|
||||
_15Kt.box(15.kt:17)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 15
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
object MyObject : Foo(MyObject.prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo.MyObject == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/16.exceptions.runtime.txt
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
java.lang.VerifyError: Bad type on operand stack
|
||||
Exception Details:
|
||||
Location:
|
||||
Foo$Companion.<init>()V @2: checkcast
|
||||
Reason:
|
||||
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
|
||||
Current Frame:
|
||||
bci: @2
|
||||
flags: { flagThisUninit }
|
||||
locals: { uninitializedThis }
|
||||
stack: { uninitializedThis, uninitializedThis }
|
||||
Bytecode:
|
||||
0x0000000: 2a2a c000 02b6 000a b700 0db1
|
||||
|
||||
Foo.<clinit>(16.kt)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 16
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
companion object : Foo(prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo(42) == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/17.exceptions.runtime.txt
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
java.lang.VerifyError: Bad type on operand stack
|
||||
Exception Details:
|
||||
Location:
|
||||
Foo$Companion.<init>()V @2: checkcast
|
||||
Reason:
|
||||
Type uninitializedThis (current frame, stack[1]) is not assignable to 'java/lang/Object'
|
||||
Current Frame:
|
||||
bci: @2
|
||||
flags: { flagThisUninit }
|
||||
locals: { uninitializedThis }
|
||||
stack: { uninitializedThis, uninitializedThis }
|
||||
Bytecode:
|
||||
0x0000000: 2a2a c000 02b6 000a b700 0db1
|
||||
|
||||
Foo.<clinit>(17.kt)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 17
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
companion object : Foo(this.prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo(42) == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/18.exceptions.runtime.txt
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
java.lang.ExceptionInInitializerError
|
||||
_18Kt.box(18.kt:17)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 18
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
companion object : Foo(Companion.prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo(42) == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
compiler/tests-spec/testData/codegen/box/notLinked/objects/inheritance/neg/19.exceptions.runtime.txt
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
java.lang.ExceptionInInitializerError
|
||||
_19Kt.box(19.kt:17)
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* KOTLIN CODEGEN BOX NOT LINKED SPEC TEST (NEGATIVE)
|
||||
*
|
||||
* SECTIONS: objects, inheritance
|
||||
* NUMBER: 19
|
||||
* DESCRIPTION: Access to class members in the super constructor call of an object.
|
||||
* UNEXPECTED BEHAVIOUR
|
||||
* ISSUES: KT-25289
|
||||
* EXCEPTION: runtime
|
||||
*/
|
||||
|
||||
open class Foo(val prop: Int) {
|
||||
object MyObject : Foo(MyObject.prop)
|
||||
}
|
||||
|
||||
fun box(): String? {
|
||||
if (Foo.MyObject == null) return null
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user